Hi,
In the documentation:
http://incubator.apache.org/opennlp/documentation/manual/opennlp.html#tools.namefind.recognition.api
I think the example should be as follows (String->String[] and
"years"->"years",)
String[] sentence = new String[]{
"Pierre",
"Vinken",
"is",
"61",
"years",
"old",
"."
};
In
http://incubator.apache.org/opennlp/documentation/manual/opennlp.html#tools.tokenizer.api
Tokenizer tokenizer = new TokenizerME(model);
should be
TokenizerME tokenizer = new TokenizerME(model);
regards,
Ben