Class DisambiguatedExample


  • public class DisambiguatedExample
    extends java.lang.Object
    Disambiguated example. Used for testing disambiguator rules.
    Since:
    0.9.8
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String example  
      private java.lang.String input  
      private java.lang.String output  
    • Constructor Summary

      Constructors 
      Constructor Description
      DisambiguatedExample​(java.lang.String example)  
      DisambiguatedExample​(java.lang.String example, java.lang.String input, java.lang.String output)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAmbiguous()  
      @Nullable java.lang.String getDisambiguated()
      Return the possible corrections.
      java.lang.String getExample()
      Return the example that contains the error.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • example

        private final java.lang.String example
      • input

        private final java.lang.String input
      • output

        private final java.lang.String output
    • Constructor Detail

      • DisambiguatedExample

        public DisambiguatedExample​(java.lang.String example)
      • DisambiguatedExample

        public DisambiguatedExample​(java.lang.String example,
                                    java.lang.String input,
                                    java.lang.String output)
        Parameters:
        example - Example sentence
        input - Ambiguous forms of a token (specify in 'word[lemma/POS]' format)
        output - Disambiguated forms of a token (specify in 'word[lemma/POS]' format)
    • Method Detail

      • getExample

        public java.lang.String getExample()
        Return the example that contains the error.
      • getAmbiguous

        public java.lang.String getAmbiguous()
      • getDisambiguated

        @Nullable
        public @Nullable java.lang.String getDisambiguated()
        Return the possible corrections. May be null.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object