Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
Description
In the open nlp maual, the following link--https://opennlp.apache.org/documentation/1.5.3/manual/opennlp.html#tools.doccat.classifying.api
There is the error in the method to be used to get the best outcome. I saw the API here, https://opennlp.apache.org/documentation/1.5.3/apidocs/opennlp-tools/opennlp/tools/doccat/DocumentCategorizerME.html,
and found no such method exists. AFAIK, it should be
double[] outcomes = myCategorizer.categorize(inputText);
String category = myCategorizer.getBestCategory(outcomes);
Anyway when we are correcting this, we can correct one line above it for the typo--
DocumentCategorizerME myCategorizer = new Document*Categorier*ME(m);
to be DocumentCategorizerME myCategorizer = new Document*Categorizer*ME(m);
Attachments
Issue Links
- links to