use of org.languagetool.tokenizers.ManualTaggerAdapter in project languagetool by languagetool-org.
the class MatchTest method setUp.
//-- setup
@Before
public void setUp() throws Exception {
tagger = new ManualTaggerAdapter(new ManualTagger(new ByteArrayInputStream(TEST_DATA.getBytes("UTF-8"))));
synthesizer = new ManualSynthesizerAdapter(new ManualSynthesizer(new ByteArrayInputStream(TEST_DATA.getBytes("UTF-8"))));
languageTool = new JLanguageTool(new Demo() {
@Override
public String getName() {
return "TEST";
}
@Override
public Synthesizer getSynthesizer() {
return MatchTest.this.synthesizer;
}
@Override
public Tagger getTagger() {
return MatchTest.this.tagger;
}
});
}
Aggregations