String sentStr = "Michael McGinn is the mayor of Seattle.";
// Looks on the classpath for the default model files.
OpenNlpSentenceChunker chunker = new OpenNlpSentenceChunker();
ChunkedSentence sent = chunker.chunkSentence(sentStr);
// Prints out the (token, tag, chunk-tag) for the sentence
System.out.println(sentStr);
for (int i = 0; i < sent.getLength(); i++) {
String token = sent.getToken(i);