You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Mark Giaconia (JIRA)" <ji...@apache.org> on 2014/02/01 04:34:09 UTC
[jira] [Commented] (OPENNLP-600) java.io.IOException with
POSTaggerTrainer.conllx when -gram option is used
[ https://issues.apache.org/jira/browse/OPENNLP-600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13888434#comment-13888434 ]
Mark Giaconia commented on OPENNLP-600:
---------------------------------------
I think we should provide a InputStreamFactoryDefault class ( I have already created one for myself) that implements InputStreamFactory and has a constructor for an InputStream and a default empty constructor. A simple class like this will cut down on confusion I think... unless I'm missing something. Let me know if you think it's a good idea, I'll commit it.
> java.io.IOException with POSTaggerTrainer.conllx when -gram option is used
> --------------------------------------------------------------------------
>
> Key: OPENNLP-600
> URL: https://issues.apache.org/jira/browse/OPENNLP-600
> Project: OpenNLP
> Issue Type: Bug
> Components: POS Tagger
> Affects Versions: tools-1.5.3
> Environment: Mac OS X 10.7.4
> java version "1.7.0_06"
> Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
> Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)
> Reporter: Giorgio Valoti
> Fix For: 1.6.0
>
>
> If the -ngram option is used this exception is thrown:
> Building ngram dictionary ... IO error while building NGram Dictionary: Stream not marked
> Stream not marked
> 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.FilterObjectStream.reset(FilterObjectStream.java:43)
> at opennlp.tools.cmdline.postag.POSTaggerTrainerTool.run(POSTaggerTrainerTool.java:80)
> at opennlp.tools.cmdline.CLI.main(CLI.java:222)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)