Got this error while trying opennlp chunking:
NoClassDefFoundError: opennlp/tools/chunker/ChunkerModel
Here is the basic code:
import java.io.*;
import opennlp.tools.chunker.*;
public class test{
public static void main(String[] args) throws IOException{
ChunkerModel model = null;
InputStream modelIn = new FileInputStream("en-parser-chunking.bin");
model = new ChunkerModel(modelIn);
}
}