Mallet

24 views
Skip to first unread message

Ross Hendrickson

unread,
Dec 15, 2011, 4:11:32 PM12/15/11
to cleart...@googlegroups.com
Anyone know of any projects in Cleartk that use the mallet maxent classifier? Trying to use it but having someone else's code would speed things up.

Thanks,

Ross

Lee Becker

unread,
Dec 15, 2011, 4:28:25 PM12/15/11
to cleart...@googlegroups.com

I use it in my own code. Here is are the important pieces for getting
your annotator training and classifying with Mallet.

String dataWriterFactoryClassName =
DefaultBinaryMalletDataWriterFactory.class.getName();
String trainingArgs =
"org.cleartk.classifier.mallet.factory.MaxEntTrainerFactory";

AnalysisEngineFactory.createPrimitive(
YourAnalysisEngine.class,
YourTypeSystemDescription
... // other parameters
YourAnalysisEngine.PARAM_DATA_WRITER_FACTORY_CLASS_NAME
dataWriterFactoryClassName);

String modelArgs[] = {"path/to/training/directory/", trainingArgs}
org.classifier.jar.Train.main(modelArgs);

Ross Hendrickson

unread,
Dec 15, 2011, 5:13:02 PM12/15/11
to cleart...@googlegroups.com
thanks lee ;)

Ross


--
You received this message because you are subscribed to the Google Groups "cleartk-users" group.
To post to this group, send email to cleart...@googlegroups.com.
To unsubscribe from this group, send email to cleartk-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cleartk-users?hl=en.


Reply all
Reply to author
Forward
0 new messages