[ 
https://issues.apache.org/jira/browse/OPENNLP-1237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner resolved OPENNLP-1237.
-------------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed

This was resolved with commit 6c439ae9 by [~alanwang926] in OPENNLP-1319.

Documentation example is (now) consistent since version 2.0.0.

Resolving as (indirectly) fixed.

> Document Categorizer example references non-existant method signature
> ---------------------------------------------------------------------
>
>                 Key: OPENNLP-1237
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1237
>             Project: OpenNLP
>          Issue Type: Documentation
>          Components: Documentation
>    Affects Versions: 1.9.1
>            Reporter: Nick Burch
>            Assignee: Martin Wiesner
>            Priority: Major
>             Fix For: 2.0.0
>
>
> In the Document Categorizer section of the manual 
> https://opennlp.apache.org/docs/1.9.1/manual/opennlp.html#tools.doccat there 
> is a code snippet in the training section:
> {code}
>   model = DocumentCategorizerME.train("en", sampleStream);
> {code}
> However, no matching method is present in the javadocs at 
> https://opennlp.apache.org/docs/1.9.1/apidocs/opennlp-tools/opennlp/tools/doccat/DocumentCategorizerME.html
>  . The nearest seems to be one that takes two additional required parameters: 
> https://opennlp.apache.org/docs/1.9.1/apidocs/opennlp-tools/opennlp/tools/doccat/DocumentCategorizerME.html#train-java.lang.String-opennlp.tools.util.ObjectStream-opennlp.tools.util.TrainingParameters-opennlp.tools.doccat.DoccatFactory-
> It looks like the code snippet is out of date, and needs updating to cover 
> the API changes that seem to have happened



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to