Mallet library - encoders.ser and Manifest.MF not found (cleartk-ml-mallet-1.2.2.jar)

36 views
Skip to first unread message

Sunil Mandhan

unread,
Dec 11, 2014, 12:27:06 PM12/11/14
to cleart...@googlegroups.com
I am trying to use Mallet CRF for NER. I am getting following errors. I am stuck here, any quick response will be appreciated.

java.io.FileNotFoundException: d:\models\attribext\MANIFEST.MF (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at org.cleartk.classifier.jar.JarClassifierBuilder.fromTrainingDirectory(JarClassifierBuilder.java:88)
    at org.cleartk.classifier.jar.JarClassifierBuilder.trainAndPackage(JarClassifierBuilder.java:126)
    at org.cleartk.classifier.jar.Train.main(Train.java:59)

My understanding is MANIFEST.MF and encoders.ser should be created automatically. But why they are not being created here.
I am using cleartk-ml-mallet-1.2.2.jar along with cTAKES 3.1.2-SNAPSHOT

sgsunny

unread,
Dec 11, 2014, 8:36:30 PM12/11/14
to cleart...@googlegroups.com
I got it working by adding the following
  if (this.isTraining())
        this.collectionProcessComplete();

after the training data write operation and before Train.main method call. By calling this method, encoders.ser and Manifest.MF are automatically generated.

Steven Bethard

unread,
Dec 22, 2014, 10:10:16 AM12/22/14
to cleart...@googlegroups.com
Sorry about the long delayed response, but yes, if you are running the
pipeline, you must call collectionProcessComplete() for the various
files to be written.
> --
> You received this message because you are subscribed to the Google Groups
> "cleartk-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cleartk-user...@googlegroups.com.
> To post to this group, send email to cleart...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cleartk-users.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages