Class CatalanHybridDisambiguator
java.lang.Object
org.languagetool.tagging.disambiguation.AbstractDisambiguator
org.languagetool.tagging.disambiguation.ca.CatalanHybridDisambiguator
- All Implemented Interfaces:
Disambiguator
Hybrid chunker-disambiguator for Catalan
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MultiWordChunkerprivate final MultiWordChunkerprivate final Disambiguatorprivate static final String -
Constructor Summary
ConstructorsConstructorDescriptionCalls two disambiguator classes: (1) a chunker; (2) a rule-based disambiguator. -
Method Summary
Modifier and TypeMethodDescriptiondisambiguate(AnalyzedSentence input) If possible, filters out the wrong POS tags.final AnalyzedSentencedisambiguate(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
-
chunker
-
chunkerGlobal
-
disambiguator
-
ENGLISH_IGNORE_TAG
- See Also:
-
-
Constructor Details
-
CatalanHybridDisambiguator
Calls two disambiguator classes: (1) a chunker; (2) a rule-based disambiguator.
-
-
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 final 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
-