Search in sources :

Example 11 with WordTokenizer

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

the class SlovakTaggerTest method setUp.

@Before
public void setUp() {
    tagger = new SlovakTagger();
    tokenizer = new WordTokenizer();
}
Also used : WordTokenizer(org.languagetool.tokenizers.WordTokenizer) Before(org.junit.Before)

Example 12 with WordTokenizer

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

the class SpanishTaggerTest method setUp.

@Before
public void setUp() {
    tagger = new SpanishTagger();
    tokenizer = new WordTokenizer();
}
Also used : WordTokenizer(org.languagetool.tokenizers.WordTokenizer) Before(org.junit.Before)

Example 13 with WordTokenizer

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

the class FrenchTaggerTest method setUp.

@Before
public void setUp() {
    tagger = new FrenchTagger();
    tokenizer = new WordTokenizer();
}
Also used : WordTokenizer(org.languagetool.tokenizers.WordTokenizer) Before(org.junit.Before)

Example 14 with WordTokenizer

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

the class GalicianTaggerTest method setUp.

@Before
public void setUp() {
    tagger = new GalicianTagger();
    tokenizer = new WordTokenizer();
}
Also used : WordTokenizer(org.languagetool.tokenizers.WordTokenizer) Before(org.junit.Before)

Example 15 with WordTokenizer

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

the class PolishDisambiguationRuleTest method setUp.

@Before
public void setUp() {
    tagger = new PolishTagger();
    tokenizer = new WordTokenizer();
    sentenceTokenizer = new SRXSentenceTokenizer(new Polish());
    disambiguator = new MultiWordChunker("/pl/multiwords.txt");
}
Also used : PolishTagger(org.languagetool.tagging.pl.PolishTagger) Polish(org.languagetool.language.Polish) WordTokenizer(org.languagetool.tokenizers.WordTokenizer) SRXSentenceTokenizer(org.languagetool.tokenizers.SRXSentenceTokenizer) Before(org.junit.Before)

Aggregations

WordTokenizer (org.languagetool.tokenizers.WordTokenizer)18 Before (org.junit.Before)17 SRXSentenceTokenizer (org.languagetool.tokenizers.SRXSentenceTokenizer)3 XmlRuleDisambiguator (org.languagetool.tagging.disambiguation.rules.XmlRuleDisambiguator)2 DemoDisambiguator (org.languagetool.tagging.disambiguation.xx.DemoDisambiguator)2 FileInputStream (java.io.FileInputStream)1 English (org.languagetool.language.English)1 French (org.languagetool.language.French)1 Polish (org.languagetool.language.Polish)1 EnglishTagger (org.languagetool.tagging.en.EnglishTagger)1 FrenchTagger (org.languagetool.tagging.fr.FrenchTagger)1 PolishTagger (org.languagetool.tagging.pl.PolishTagger)1