Search in sources :

Example 1 with Chunker

use of opennlp.tools.chunker.Chunker in project stanbol by apache.

the class OpenNLPTest method testLoadMissingChunker.

@Test
public void testLoadMissingChunker() throws IOException {
    ChunkerModel model = openNLP.getChunkerModel("ru");
    Assert.assertNull(model);
    Chunker chunker = openNLP.getChunker("ru");
    Assert.assertNull(chunker);
}
Also used : ChunkerModel(opennlp.tools.chunker.ChunkerModel) Chunker(opennlp.tools.chunker.Chunker) Test(org.junit.Test)

Example 2 with Chunker

use of opennlp.tools.chunker.Chunker in project stanbol by apache.

the class OpenNLPTest method testLoadEnChunker.

@Test
public void testLoadEnChunker() throws IOException {
    ChunkerModel model = openNLP.getChunkerModel("en");
    Assert.assertNotNull(model);
    Chunker chunker = openNLP.getChunker("en");
    Assert.assertNotNull(chunker);
}
Also used : ChunkerModel(opennlp.tools.chunker.ChunkerModel) Chunker(opennlp.tools.chunker.Chunker) Test(org.junit.Test)

Aggregations

Chunker (opennlp.tools.chunker.Chunker)2 ChunkerModel (opennlp.tools.chunker.ChunkerModel)2 Test (org.junit.Test)2