Search in sources :

Example 1 with SRXSentenceTokenizer

use of org.languagetool.tokenizers.SRXSentenceTokenizer 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 SRXSentenceTokenizer

use of org.languagetool.tokenizers.SRXSentenceTokenizer 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)

Example 3 with SRXSentenceTokenizer

use of org.languagetool.tokenizers.SRXSentenceTokenizer 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 4 with SRXSentenceTokenizer

use of org.languagetool.tokenizers.SRXSentenceTokenizer in project languagetool by languagetool-org.

the class CatalanDisambiguationRuleTest method setUp.

@Before
public void setUp() {
    tagger = new CatalanTagger();
    tokenizer = new CatalanWordTokenizer();
    sentenceTokenizer = new SRXSentenceTokenizer(new Catalan());
    disambiguator = new MultiWordChunker("/ca/multiwords.txt", true);
}
Also used : CatalanTagger(org.languagetool.tagging.ca.CatalanTagger) CatalanWordTokenizer(org.languagetool.tokenizers.ca.CatalanWordTokenizer) Catalan(org.languagetool.language.Catalan) SRXSentenceTokenizer(org.languagetool.tokenizers.SRXSentenceTokenizer) Before(org.junit.Before)

Example 5 with SRXSentenceTokenizer

use of org.languagetool.tokenizers.SRXSentenceTokenizer 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)6 SRXSentenceTokenizer (org.languagetool.tokenizers.SRXSentenceTokenizer)6 DemoDisambiguator (org.languagetool.tagging.disambiguation.xx.DemoDisambiguator)4 XmlRuleDisambiguator (org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator)3 WordTokenizer (org.languagetool.tokenizers.WordTokenizer)3 Catalan (org.languagetool.language.Catalan)1 English (org.languagetool.language.English)1 French (org.languagetool.language.French)1 Polish (org.languagetool.language.Polish)1 Romanian (org.languagetool.language.Romanian)1 Ukrainian (org.languagetool.language.Ukrainian)1 CatalanTagger (org.languagetool.tagging.ca.CatalanTagger)1 MultiWordChunker (org.languagetool.tagging.disambiguation.MultiWordChunker)1 UkrainianHybridDisambiguator (org.languagetool.tagging.disambiguation.uk.UkrainianHybridDisambiguator)1 EnglishTagger (org.languagetool.tagging.en.EnglishTagger)1 FrenchTagger (org.languagetool.tagging.fr.FrenchTagger)1 PolishTagger (org.languagetool.tagging.pl.PolishTagger)1 RomanianTagger (org.languagetool.tagging.ro.RomanianTagger)1 UkrainianTagger (org.languagetool.tagging.uk.UkrainianTagger)1 CatalanWordTokenizer (org.languagetool.tokenizers.ca.CatalanWordTokenizer)1