Package 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.
-
-
Field Summary
-
Fields inherited from class cc.mallet.fst.TransducerEvaluator
instanceListDescriptions, instanceLists
-
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evaluateInstanceList(TransducerTrainer trainer, InstanceList instances, java.lang.String description)
double
getAccuracy(java.lang.String description)
Returns the accuracy from the last time test() or evaluate() was called-
Methods inherited from class cc.mallet.fst.TransducerEvaluator
evaluate, preamble, precondition
-
-
-
-
Constructor Detail
-
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)
-
-
Method Detail
-
evaluateInstanceList
public void evaluateInstanceList(TransducerTrainer trainer, InstanceList instances, java.lang.String description)
- Specified by:
evaluateInstanceList
in classTransducerEvaluator
-
getAccuracy
public double getAccuracy(java.lang.String description)
Returns the accuracy from the last time test() or evaluate() was called- Returns:
-
-