public class GermanRuleDisambiguator extends AbstractDisambiguator
Constructor and Description |
---|
GermanRuleDisambiguator() |
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. |
preDisambiguate
public final AnalyzedSentence disambiguate(AnalyzedSentence input) throws IOException
Disambiguator
input
- The sentence with already tagged words. The words are expected to
have multiple tags.IOException
public AnalyzedSentence disambiguate(AnalyzedSentence input, @Nullable JLanguageTool.CheckCancelledCallback checkCanceled) throws IOException
Disambiguator
Disambiguator.disambiguate(AnalyzedSentence)
,
but may call checkCanceled
(if it's non-null) to allow for better interruptibility.IOException