com.thesis.backend.classifiers
Class CRF_Classifier
java.lang.Object
com.thesis.backend.classifiers.CRF_Classifier
public class CRF_Classifier
- extends java.lang.Object
CRF classifier
Method Summary |
cc.mallet.fst.CRF |
getCrf()
|
cc.mallet.types.InstanceList |
putThroughPipes(java.lang.String dataFileName)
Create, setup and run through MALLET pipes
This is were features are specified |
void |
runCrf(cc.mallet.types.Instance instance,
Paper paper)
Run CRF model on instance
Returns a list with 6 arraylists(according to labels) which contain the tokens |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CRF_Classifier
public CRF_Classifier(java.lang.String path)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
- Parameters:
path
-
- Throws:
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
putThroughPipes
public cc.mallet.types.InstanceList putThroughPipes(java.lang.String dataFileName)
throws java.io.IOException
- Create, setup and run through MALLET pipes
This is were features are specified
- Parameters:
dataFileName
-
- Returns:
- iData
- Throws:
java.io.IOException
runCrf
public void runCrf(cc.mallet.types.Instance instance,
Paper paper)
- Run CRF model on instance
Returns a list with 6 arraylists(according to labels) which contain the tokens
- Parameters:
instance
- paper
-
getCrf
public cc.mallet.fst.CRF getCrf()