Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1237

Document Categorizer example references non-existant method signature

    XMLWordPrintableJSON

    Details

    • Type: Documentation
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.9.1
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None

      Description

      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:

        model = DocumentCategorizerME.train("en", sampleStream);
      

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gagravarr Nick Burch
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: