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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.