Class DisambiguatedExample
- java.lang.Object
-
- org.languagetool.tagging.disambiguation.rules.DisambiguatedExample
-
public class DisambiguatedExample extends java.lang.Object
Disambiguated example. Used for testing disambiguator rules.- Since:
- 0.9.8
-
-
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()
-
-
-
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 sentenceinput
- 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 benull
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-