Search in sources :

Example 1 with EnglishTagger

use of org.languagetool.tagging.en.EnglishTagger 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();
}
Also used : English(org.languagetool.language.English) DemoDisambiguator(org.languagetool.tagging.disambiguation.xx.DemoDisambiguator) XmlRuleDisambiguator(org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator) WordTokenizer(org.languagetool.tokenizers.WordTokenizer) EnglishTagger(org.languagetool.tagging.en.EnglishTagger) SRXSentenceTokenizer(org.languagetool.tokenizers.SRXSentenceTokenizer) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 English (org.languagetool.language.English)1 XmlRuleDisambiguator (org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator)1 DemoDisambiguator (org.languagetool.tagging.disambiguation.xx.DemoDisambiguator)1 EnglishTagger (org.languagetool.tagging.en.EnglishTagger)1 SRXSentenceTokenizer (org.languagetool.tokenizers.SRXSentenceTokenizer)1 WordTokenizer (org.languagetool.tokenizers.WordTokenizer)1