Class GermanRuleDisambiguator
java.lang.Object
org.languagetool.tagging.disambiguation.AbstractDisambiguator
org.languagetool.tagging.disambiguation.rules.de.GermanRuleDisambiguator
- All Implemented Interfaces:
Disambiguator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Disambiguatorprivate final MultiWordChunkerprivate final MultiWordChunkerprivate final MultiWordChunker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal AnalyzedSentencedisambiguate(AnalyzedSentence input) If possible, filters out the wrong POS tags.disambiguate(AnalyzedSentence input, JLanguageTool.CheckCancelledCallback checkCanceled) The same asDisambiguator.disambiguate(AnalyzedSentence), but may callcheckCanceled(if it's non-null) to allow for better interruptibility.Methods inherited from class org.languagetool.tagging.disambiguation.AbstractDisambiguator
preDisambiguate
-
Field Details
-
disambiguator
-
multitokenSpeller
-
multitokenSpeller2
-
multitokenSpeller3
-
-
Constructor Details
-
GermanRuleDisambiguator
-
-
Method Details
-
disambiguate
Description copied from interface:DisambiguatorIf possible, filters out the wrong POS tags.- Parameters:
input- The sentence with already tagged words. The words are expected to have multiple tags.- Returns:
- Analyzed sentence, where each word has only one (possibly the most correct) tag.
- Throws:
IOException
-
disambiguate
public AnalyzedSentence disambiguate(AnalyzedSentence input, @Nullable JLanguageTool.CheckCancelledCallback checkCanceled) throws IOException Description copied from interface:DisambiguatorThe same asDisambiguator.disambiguate(AnalyzedSentence), but may callcheckCanceled(if it's non-null) to allow for better interruptibility.- Throws:
IOException
-