Menu

Models for 1.5

Help
2010-09-23
2013-04-16
  • Steven Miles

    Steven Miles - 2010-09-23

    Where can I download the models for opennlp-tools 1.5, as when I use the ones from 1.4 I get the following error

    Model has invalid format: Missing the manifest.properties!
    

    Thanks

     
  • Joern Kottmann

    Joern Kottmann - 2010-09-23

    I updated the models page yesterday.

    Here is the direct link:
    http://www.opennlp.org/models-1.5/

    If you have any issues please report back to us.

    Hope that helps,
    Jörn

     
  • Steven Miles

    Steven Miles - 2010-09-23

    Thanks for the quick response

     
  • Edgar Espina

    Edgar Espina - 2010-09-27

    Hi Jörn,

    I'm trying to use the pos perceptron model but I got the following exception:

    java.io.EOFException: Unexpected end of ZLIB input stream
        at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:223)
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:154)
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:105)
        at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:320)
        at java.io.DataInputStream.readUTF(DataInputStream.java:572)
        at java.io.DataInputStream.readUTF(DataInputStream.java:547)
        at opennlp.model.BinaryFileDataReader.readUTF(BinaryFileDataReader.java:61)
        at opennlp.model.AbstractModelReader.readUTF(AbstractModelReader.java:82)
        at opennlp.model.GenericModelReader.checkModelType(GenericModelReader.java:41)
        at opennlp.model.AbstractModelReader.getModel(AbstractModelReader.java:86)
        at opennlp.tools.util.model.GenericModelSerializer.create(GenericModelSerializer.java:35)
        at opennlp.tools.util.model.GenericModelSerializer.create(GenericModelSerializer.java:31)
        at opennlp.tools.util.model.BaseModel.<init>(BaseModel.java:135)
        at opennlp.tools.postag.POSModel.<init>(POSModel.java:96)
    

    Any ideas?

    Thanks

     
  • Joern Kottmann

    Joern Kottmann - 2010-09-27

    Yes the model you are loading is somehow damaged / invalid.
    Did you get the model form our download page ? Which language ?

    You can try to download it again, maybe that damaged the model.

    Jörn

     
  • Edgar Espina

    Edgar Espina - 2010-09-27

    I downloaded from: http://www.opennlp.org/models-1.5/en-pos-perceptron.bin
    I tried three times, same result.

    Thanks,

    edgar

     
  • Joern Kottmann

    Joern Kottmann - 2010-09-27

    I can reproduce the problem, have to investigate it. As a work around I suggest to use the maxent model until the issue with the perceptron model is fixed.

    Jörn

     
  • Edgar Espina

    Edgar Espina - 2010-09-27

    Sure, no problem and thanks.

    What are the pros and cons of these two models?

    Thank you,

     
  • Joern Kottmann

    Joern Kottmann - 2010-09-27

    The perceptron model was added by Tom Morton, and he did write a nice blog post about it:
    http://annotation.org/index.php/blog

    Its the last post: "Average Perceptron Algorithm Better Than Average."

    Jörn

     
  • Joern Kottmann

    Joern Kottmann - 2010-09-27

    There is a bug in a piece of maxent code I worked on. I will open a bug report over at the maxent project.
    Luckily the models will work with the released version after re-training them with the fixed maxent code.

    I will upload new models soon.

    Jörn

     
  • Joern Kottmann

    Joern Kottmann - 2010-09-28

    New perceptron models are uploaded now.

    Jörn

     

Log in to post a comment.