Hi,

I am having an error in POS Tagger CrossValidator tool from the trunk.
I tried the same command with a released version and it worked, also I
tried Chunker CV tool and it is working too.
I tried debugging the code and check the SVN history for some clue,
but could not find anything. Any idea what is wrong?

$ bin/opennlp POSTaggerCrossValidator -lang pt -encoding MacRoman
-data pos1.txt -cutoff 50

IO error while reading training data or indexing data: Stream not marked

Stack trace:
java.io.IOException: Stream not marked
        at java.io.BufferedReader.reset(BufferedReader.java:485)
        at 
opennlp.tools.util.PlainTextByLineStream.reset(PlainTextByLineStream.java:79)
        at 
opennlp.tools.util.FilterObjectStream.reset(FilterObjectStream.java:43)
        at 
opennlp.tools.util.eval.CrossValidationPartitioner.next(CrossValidationPartitioner.java:256)
        at 
opennlp.tools.postag.POSTaggerCrossValidator.evaluate(POSTaggerCrossValidator.java:113)
        at 
opennlp.tools.cmdline.postag.POSTaggerCrossValidatorTool.run(POSTaggerCrossValidatorTool.java:72)
        at opennlp.tools.cmdline.CLI.main(CLI.java:212)


Any idea what is wrong?

Thanks,
William

Reply via email to