|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.sequential.CRFLearner
public class CRFLearner
Sequential learner based on the CRF algorithm. Source for the iitb.CRF package available from http://crf.sourceforge.net.
Nested Class Summary | |
---|---|
class |
CRFLearner.MTFeatureGenImpl
|
Field Summary | |
---|---|
java.lang.String |
maxItersHelp
|
java.lang.String |
useHighPrecisionArithmeticHelp
|
Fields inherited from interface edu.cmu.minorthird.classify.sequential.SequenceConstants |
---|
HISTORY_FEATURE, NULL_CLASS_NAME |
Constructor Summary | |
---|---|
CRFLearner()
|
|
CRFLearner(java.lang.String args)
|
|
CRFLearner(java.lang.String[] args)
|
|
CRFLearner(java.lang.String args,
int histsize)
|
Method Summary | |
---|---|
SequenceClassifier |
batchTrain(SequenceDataset dataset)
|
ClassLabel[] |
classification(Instance[] sequence)
Return a predicted type for each element of the sequence. |
java.lang.String |
explain(Instance[] sequence)
Return some string that 'explains' the classification |
Explanation |
getExplanation(Instance[] sequence)
Return and explanation for a classification |
int |
getHistorySize()
Return the number of previous predictions used as features in learning. |
int |
getMaxIters()
|
java.lang.String |
getMaxItersHelp()
|
ExampleSchema |
getSchema()
|
boolean |
getUseHighPrecisionArithmetic()
|
java.lang.String |
getUseHighPrecisionArithmeticHelp()
|
void |
removeLogSpaceOption()
|
void |
setLogSpaceOption()
|
void |
setMaxIters(int newMaxIters)
|
void |
setSchema(ExampleSchema schema)
|
void |
setUseHighPrecisionArithmetic(boolean newUseHighPrecisionArithmetic)
|
Viewer |
toGUI()
Create a view of this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String maxItersHelp
public java.lang.String useHighPrecisionArithmeticHelp
Constructor Detail |
---|
public CRFLearner()
public CRFLearner(java.lang.String args)
public CRFLearner(java.lang.String args, int histsize)
public CRFLearner(java.lang.String[] args)
Method Detail |
---|
public void setLogSpaceOption()
public void removeLogSpaceOption()
public void setSchema(ExampleSchema schema)
setSchema
in interface SequenceClassifierLearner
public ExampleSchema getSchema()
public int getHistorySize()
SequenceClassifierLearner
getHistorySize
in interface SequenceClassifierLearner
public void setMaxIters(int newMaxIters)
public int getMaxIters()
public java.lang.String getMaxItersHelp()
public boolean getUseHighPrecisionArithmetic()
public void setUseHighPrecisionArithmetic(boolean newUseHighPrecisionArithmetic)
public java.lang.String getUseHighPrecisionArithmeticHelp()
public SequenceClassifier batchTrain(SequenceDataset dataset)
batchTrain
in interface BatchSequenceClassifierLearner
public ClassLabel[] classification(Instance[] sequence)
classification
in interface SequenceClassifier
public java.lang.String explain(Instance[] sequence)
explain
in interface SequenceClassifier
public Explanation getExplanation(Instance[] sequence)
SequenceClassifier
getExplanation
in interface SequenceClassifier
public Viewer toGUI()
Visible
toGUI
in interface Visible
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |