CrossValidator tools argument parser not working with minimun arguments
-----------------------------------------------------------------------
Key: OPENNLP-418
URL: https://issues.apache.org/jira/browse/OPENNLP-418
Project: OpenNLP
Issue Type: Bug
Components: Command Line Interface
Affects Versions: tools-1.5.3-incubating
Reporter: William Colen
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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira