[
https://issues.apache.org/jira/browse/OPENNLP-773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15794101#comment-15794101
]
ASF GitHub Bot commented on OPENNLP-773:
----------------------------------------
GitHub user smarthi opened a pull request:
https://github.com/apache/opennlp/pull/27
OPENNLP-773: OpenNLP documentation -- update in the method to be used
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/smarthi/opennlp OPENNLP-773
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/opennlp/pull/27.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #27
----
commit 7f3b54ffce1dc4e88e2fdacbfa490cbd388654cb
Author: smarthi <[email protected]>
Date: 2017-01-03T04:27:47Z
OPENNLP-773: OpenNLP documentation -- update in the method to be used
----
> 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
> Priority: Trivial
> 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)