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);
--
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.