Class DisambiguatedExample


  • public class DisambiguatedExample
    extends Object
    Disambiguated example. Used for testing disambiguator rules.
    Since:
    0.9.8
    Author:
    Marcin Milkowski
    • Constructor Detail

      • DisambiguatedExample

        public DisambiguatedExample​(String example)
      • DisambiguatedExample

        public DisambiguatedExample​(String example,
                                    String input,
                                    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 String getExample()
        Return the example that contains the error.
      • getAmbiguous

        public String getAmbiguous()
      • getDisambiguated

        @Nullable
        public @Nullable String getDisambiguated()
        Return the possible corrections. May be null.