Please let me know how we can train a CRFClassifier?
I have below peace of code, however it don't create a 'gz' file.
String prop = "classifiers/austen.prop"; Properties props = StringUtils.propFileToProperties(prop);
SeqClassifierFlags flags = new SeqClassifierFlags(props); CRFClassifier<CoreLabel> crf = new CRFClassifier<CoreLabel>(flags); crf.train();
Log in to post a comment.
String prop = "classifiers/austen.prop";
Properties props = StringUtils.propFileToProperties(prop);
SeqClassifierFlags flags = new SeqClassifierFlags(props);
CRFClassifier<CoreLabel> crf = new CRFClassifier<CoreLabel>(flags);
crf.train();