Search in sources :

Example 1 with MultiWordChunker

use of org.languagetool.tagging.disambiguation.MultiWordChunker in project languagetool by languagetool-org.

the class UkrainianDisambiguationRuleTest method setUp.

@Before
public void setUp() {
    tagger = new UkrainianTagger();
    tokenizer = new UkrainianWordTokenizer();
    sentenceTokenizer = new SRXSentenceTokenizer(new Ukrainian());
    disambiguator = new UkrainianHybridDisambiguator();
    demoDisambiguator = new DemoDisambiguator();
    chunker = new MultiWordChunker("/uk/multiwords.txt", true);
}
Also used : DemoDisambiguator(org.languagetool.tagging.disambiguation.xx.DemoDisambiguator) Ukrainian(org.languagetool.language.Ukrainian) MultiWordChunker(org.languagetool.tagging.disambiguation.MultiWordChunker) UkrainianTagger(org.languagetool.tagging.uk.UkrainianTagger) UkrainianHybridDisambiguator(org.languagetool.tagging.disambiguation.uk.UkrainianHybridDisambiguator) UkrainianWordTokenizer(org.languagetool.tokenizers.uk.UkrainianWordTokenizer) SRXSentenceTokenizer(org.languagetool.tokenizers.SRXSentenceTokenizer) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 Ukrainian (org.languagetool.language.Ukrainian)1 MultiWordChunker (org.languagetool.tagging.disambiguation.MultiWordChunker)1 UkrainianHybridDisambiguator (org.languagetool.tagging.disambiguation.uk.UkrainianHybridDisambiguator)1 DemoDisambiguator (org.languagetool.tagging.disambiguation.xx.DemoDisambiguator)1 UkrainianTagger (org.languagetool.tagging.uk.UkrainianTagger)1 SRXSentenceTokenizer (org.languagetool.tokenizers.SRXSentenceTokenizer)1 UkrainianWordTokenizer (org.languagetool.tokenizers.uk.UkrainianWordTokenizer)1