Hi I am really glad I found OpenNLP.
I have been going through the Name Finder API documentation, and I
found two small typos in the code examples:
1. the for loop
for (String document[][] : documents) {
for (String[] sentence : document) {
Span nameSpans[] = find(sentence);
// do something with the names
}
nameFinder.clearAdaptiveData()
}
I the find should be a method of the nameFinder object, so the line:
Span nameSpans[] = find(sentence);
should be:
Span nameSpans[] = nameFinder.find(sentence);
2. In the next code block, the sentence variable is incorrectly typed.
It reads:
String sentence = new String[]{
"Pierre",
"Vinken",
"is",
"61",
"years"
"old",
"."
};
However I believe that should be type sentence[].
Minor typos in the documentation, let me know if there is anything I
can do to fix the documentation.