[
https://issues.apache.org/jira/browse/OPENNLP-773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anshu Pitlia updated OPENNLP-773:
---------------------------------
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);
was:
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);
> OpenNLP documentation -- update in the method to be used
> --------------------------------------------------------
>
> Key: OPENNLP-773
> URL: https://issues.apache.org/jira/browse/OPENNLP-773
> Project: OpenNLP
> Issue Type: Improvement
> Components: Doccat
> Reporter: Anshu Pitlia
> Labels: documentation
>
> 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);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)