Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
tools-1.5.3
-
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)