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

java.io.IOException with POSTaggerTrainer.conllx when -gram option is used

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: tools-1.5.3
    • Fix Version/s: 1.6.0
    • Component/s: POS Tagger
    • Labels:
      None
    • 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)

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              giorgio_v Giorgio Valoti
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: