use of org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator in project languagetool by languagetool-org.
the class EnglishDisambiguationRuleTest method setUp.
@Before
public void setUp() {
tagger = new EnglishTagger();
tokenizer = new WordTokenizer();
sentenceTokenizer = new SRXSentenceTokenizer(new English());
disambiguator = new XmlRuleDisambiguator(new English());
disamb2 = new DemoDisambiguator();
}
use of org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator in project languagetool by languagetool-org.
the class FrenchRuleDisambiguatorTest method setUp.
@Before
public void setUp() throws IOException {
tagger = new FrenchTagger();
tokenizer = new WordTokenizer();
French language = new French();
sentenceTokenizer = new SRXSentenceTokenizer(language);
disambiguator = new XmlRuleDisambiguator(language);
disamb2 = new DemoDisambiguator();
}
use of org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator 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();
}
Aggregations