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

SentenceDetectorEvaluator example broken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: tools-1.5.0-sourceforge, tools-1.5.1-incubating
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Mac OS X Lion

      Description

      I tried to execute the SentenceDetectorEvaluator as described in:
      http://incubator.apache.org/opennlp/documentation/manual/opennlp.html#tools.sentdetect.eval.tool
      with
      bin/opennlp SentenceDetectorEvaluator -encoding UTF-8 -model en-sent.bin -data en-sent.eval
      but I always got the following message:
      "Usage: opennlp SentenceDetectorEvaluator -encoding charset -model model -data testData"

      I looked up the source (SentenceDetectorEvaluatorTool.java) and I think I found the problem:

      if (args.length != 4) {
      System.out.println(getHelp());
      throw new TerminateToolException(1);
      }

      The argument count check is wrong...should be 6!

      Flo

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fsalbrechter Florian Salbrechter
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified