Search in sources :

Example 1 with RomanianWordTokenizer

use of org.languagetool.tokenizers.ro.RomanianWordTokenizer in project languagetool by languagetool-org.

the class RomanianRuleDisambiguatorTest method setUp.

@Before
public void setUp() {
    tagger = new RomanianTagger();
    tokenizer = new RomanianWordTokenizer();
    Romanian language = new Romanian();
    sentenceTokenizer = new SRXSentenceTokenizer(language);
    disambiguator = new XmlRuleDisambiguator(language);
    disamb2 = new DemoDisambiguator();
}
Also used : RomanianTagger(org.languagetool.tagging.ro.RomanianTagger) DemoDisambiguator(org.languagetool.tagging.disambiguation.xx.DemoDisambiguator) Romanian(org.languagetool.language.Romanian) RomanianWordTokenizer(org.languagetool.tokenizers.ro.RomanianWordTokenizer) XmlRuleDisambiguator(org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator) SRXSentenceTokenizer(org.languagetool.tokenizers.SRXSentenceTokenizer) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 Romanian (org.languagetool.language.Romanian)1 XmlRuleDisambiguator (org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator)1 DemoDisambiguator (org.languagetool.tagging.disambiguation.xx.DemoDisambiguator)1 RomanianTagger (org.languagetool.tagging.ro.RomanianTagger)1 SRXSentenceTokenizer (org.languagetool.tokenizers.SRXSentenceTokenizer)1 RomanianWordTokenizer (org.languagetool.tokenizers.ro.RomanianWordTokenizer)1