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

Parser fails to load 1.5.0 en-parser-chunking.bin model file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.0
    • Component/s: Parser
    • Labels:
      None

      Description

      The Parser should be able to load the 1.5.x model files, but it fails with this error message:

      Model has invalid format
      Unknown artifact format: headrules
      opennlp.tools.util.InvalidFormatException: Unknown artifact format: headrules
      at opennlp.tools.util.model.BaseModel.finishLoadingArtifacts(BaseModel.java:330)
      at opennlp.tools.util.model.BaseModel.loadModel(BaseModel.java:256)
      at opennlp.tools.util.model.BaseModel.<init>(BaseModel.java:179)
      at opennlp.tools.parser.ParserModel.<init>(ParserModel.java:140)
      at opennlp.tools.cmdline.parser.ParserModelLoader.loadModel(ParserModelLoader.java:41)
      at opennlp.tools.cmdline.parser.ParserModelLoader.loadModel(ParserModelLoader.java:1)
      at opennlp.tools.cmdline.ModelLoader.load(ModelLoader.java:62)
      at opennlp.tools.cmdline.parser.ParserTool.run(ParserTool.java:90)
      at opennlp.tools.cmdline.CLI.main(CLI.java:227)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
      at java.lang.Thread.run(Thread.java:744)

        Attachments

          Activity

            People

            • Assignee:
              joern Jörn Kottmann
              Reporter:
              joern Jörn Kottmann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: