cc.mallet.fst
Class TokenAccuracyEvaluator
java.lang.Object
cc.mallet.fst.TransducerEvaluator
cc.mallet.fst.TokenAccuracyEvaluator
public class TokenAccuracyEvaluator
- extends TransducerEvaluator
Evaluates a transducer model based on predictions of individual tokens.
Constructor Summary |
TokenAccuracyEvaluator(InstanceList[] instanceLists,
java.lang.String[] descriptions)
|
TokenAccuracyEvaluator(InstanceList instanceList1,
java.lang.String description1)
|
TokenAccuracyEvaluator(InstanceList instanceList1,
java.lang.String description1,
InstanceList instanceList2,
java.lang.String description2)
|
TokenAccuracyEvaluator(InstanceList instanceList1,
java.lang.String description1,
InstanceList instanceList2,
java.lang.String description2,
InstanceList instanceList3,
java.lang.String description3)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenAccuracyEvaluator
public TokenAccuracyEvaluator(InstanceList[] instanceLists,
java.lang.String[] descriptions)
TokenAccuracyEvaluator
public TokenAccuracyEvaluator(InstanceList instanceList1,
java.lang.String description1)
TokenAccuracyEvaluator
public TokenAccuracyEvaluator(InstanceList instanceList1,
java.lang.String description1,
InstanceList instanceList2,
java.lang.String description2)
TokenAccuracyEvaluator
public TokenAccuracyEvaluator(InstanceList instanceList1,
java.lang.String description1,
InstanceList instanceList2,
java.lang.String description2,
InstanceList instanceList3,
java.lang.String description3)
evaluateInstanceList
public void evaluateInstanceList(TransducerTrainer trainer,
InstanceList instances,
java.lang.String description)
- Specified by:
evaluateInstanceList
in class TransducerEvaluator
getAccuracy
public double getAccuracy(java.lang.String description)
- Returns the accuracy from the last time test() or evaluate() was called
- Returns: