public class GermanRuleDisambiguator extends AbstractDisambiguator
| Constructor and Description |
|---|
GermanRuleDisambiguator(Language lang) |
| Modifier and Type | Method and Description |
|---|---|
AnalyzedSentence |
disambiguate(AnalyzedSentence input)
If possible, filters out the wrong POS tags.
|
AnalyzedSentence |
disambiguate(AnalyzedSentence input,
JLanguageTool.CheckCancelledCallback checkCanceled)
The same as
Disambiguator.disambiguate(AnalyzedSentence),
but may call checkCanceled (if it's non-null) to allow for better interruptibility. |
preDisambiguatepublic GermanRuleDisambiguator(Language lang)
public final AnalyzedSentence disambiguate(AnalyzedSentence input) throws IOException
Disambiguatorinput - The sentence with already tagged words. The words are expected to
have multiple tags.IOExceptionpublic AnalyzedSentence disambiguate(AnalyzedSentence input, @Nullable JLanguageTool.CheckCancelledCallback checkCanceled) throws IOException
DisambiguatorDisambiguator.disambiguate(AnalyzedSentence),
but may call checkCanceled (if it's non-null) to allow for better interruptibility.IOException