dragon.ml.seqmodel.evaluate
Class AbstractEvaluator
java.lang.Object
|
+--dragon.ml.seqmodel.evaluate.AbstractEvaluator
- All Implemented Interfaces:
- Evaluator
- Direct Known Subclasses:
- TokenEvaluator
- public abstract class AbstractEvaluator
- extends java.lang.Object
- implements Evaluator
Abstract class of evaluation
Copyright: Copyright (c) 2005
Company: IST, Drexel University
- Version:
- 1.0
- Author:
- Davis Zhou
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
totalLabels
protected int totalLabels
annotatedLabels
protected int annotatedLabels
correctAnnotatedLabels
protected int correctAnnotatedLabels
AbstractEvaluator
public AbstractEvaluator()
totalLabels
public int totalLabels()
- Specified by:
totalLabels in interface Evaluator
- Returns:
- the number of total labels
annotatedLabels
public int annotatedLabels()
- Specified by:
annotatedLabels in interface Evaluator
- Returns:
- the number of lables set by machine
correctAnnotatedLabels
public int correctAnnotatedLabels()
- Specified by:
correctAnnotatedLabels in interface Evaluator
- Returns:
- the number of correct lables set by machine
precision
public double precision()
- Specified by:
precision in interface Evaluator
recall
public double recall()
- Specified by:
recall in interface Evaluator