Class FrenchHybridDisambiguator
java.lang.Object
org.languagetool.tagging.disambiguation.AbstractDisambiguator
org.languagetool.tagging.disambiguation.fr.FrenchHybridDisambiguator
- All Implemented Interfaces:
Disambiguator
Hybrid chunker-disambiguator for French
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MultiWordChunkerprivate final MultiWordChunkerprivate final Disambiguator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisambiguate(AnalyzedSentence input) If possible, filters out the wrong POS tags.disambiguate(AnalyzedSentence input, JLanguageTool.CheckCancelledCallback checkCanceled) Calls two disambiguator classes: (1) a chunker; (2) a rule-based disambiguator.Methods inherited from class org.languagetool.tagging.disambiguation.AbstractDisambiguator
preDisambiguate
-
Field Details
-
chunker
-
disambiguator
-
chunkerGlobal
-
-
Constructor Details
-
FrenchHybridDisambiguator
public FrenchHybridDisambiguator()
-
-
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 Calls two disambiguator classes: (1) a chunker; (2) a rule-based disambiguator.- Throws:
IOException
-