Search in sources :

Example 1 with XmlRuleDisambiguator

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();
}
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)

Example 2 with XmlRuleDisambiguator

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();
}
Also used : DemoDisambiguator(org.languagetool.tagging.disambiguation.xx.DemoDisambiguator) FrenchTagger(org.languagetool.tagging.fr.FrenchTagger) French(org.languagetool.language.French) XmlRuleDisambiguator(org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator) WordTokenizer(org.languagetool.tokenizers.WordTokenizer) SRXSentenceTokenizer(org.languagetool.tokenizers.SRXSentenceTokenizer) Before(org.junit.Before)

Example 3 with XmlRuleDisambiguator

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();
}
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)3 XmlRuleDisambiguator (org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator)3 DemoDisambiguator (org.languagetool.tagging.disambiguation.xx.DemoDisambiguator)3 SRXSentenceTokenizer (org.languagetool.tokenizers.SRXSentenceTokenizer)3 WordTokenizer (org.languagetool.tokenizers.WordTokenizer)2 English (org.languagetool.language.English)1 French (org.languagetool.language.French)1 Romanian (org.languagetool.language.Romanian)1 EnglishTagger (org.languagetool.tagging.en.EnglishTagger)1 FrenchTagger (org.languagetool.tagging.fr.FrenchTagger)1 RomanianTagger (org.languagetool.tagging.ro.RomanianTagger)1 RomanianWordTokenizer (org.languagetool.tokenizers.ro.RomanianWordTokenizer)1