|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thesis.backend.classifiers.MaxEnt_Classifier
public class MaxEnt_Classifier
Document classifier , currently set to maximum entropy (MaxEnt)
Constructor Summary | |
---|---|
MaxEnt_Classifier(java.lang.String path)
Load model from path |
Method Summary | |
---|---|
cc.mallet.classify.Classifier |
getClassifier()
|
cc.mallet.types.InstanceList |
putThroughPipes(java.lang.String dataFileName)
Create, setup and run through MALLET pipes This is were features are specified |
java.lang.String |
runMaxEnt(cc.mallet.types.Instance instance)
Run Classifier on instance and return predicted label |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MaxEnt_Classifier(java.lang.String path) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
path
-
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
Method Detail |
---|
public cc.mallet.types.InstanceList putThroughPipes(java.lang.String dataFileName) throws java.io.UnsupportedEncodingException, java.io.FileNotFoundException
dataFileName
-
java.io.UnsupportedEncodingException
java.io.FileNotFoundException
public java.lang.String runMaxEnt(cc.mallet.types.Instance instance)
instance
-
public cc.mallet.classify.Classifier getClassifier()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |