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

OpenNLP documentation -- update in the method to be used

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.7.1
    • Doccat

    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

          Activity

            People

              smarthi Suneel Marthi
              Inquisitive Anshu Pitlia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: