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

CrossValidator tools argument parser not working with minimun arguments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • tools-1.5.3
    • tools-1.5.3
    • Command Line Interface
    • None

    Description

      The minimun arguments to run a cross validator tool from command line are "lang" and "data", but using only these causes an exception:

      $ bin/opennlp SentenceDetectorCrossValidator -lang pt -data sent.txt
      Exception in thread "main" java.lang.IllegalArgumentException: Passed args must be valid!
      at opennlp.tools.cmdline.ArgumentParser.parse(ArgumentParser.java:385)
      at opennlp.tools.cmdline.AbstractTrainerTool.run(AbstractTrainerTool.java:46)
      at opennlp.tools.cmdline.sentdetect.SentenceDetectorCrossValidatorTool.run(SentenceDetectorCrossValidatorTool.java:49)
      at opennlp.tools.cmdline.CLI.main(CLI.java:212)

      Attachments

        Activity

          People

            autayeu Aliaksandr Autayeu
            colen William Colen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: