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

Field Summary
protected  int annotatedLabels
           
protected  int correctAnnotatedLabels
           
protected  int totalLabels
           
 
Constructor Summary
AbstractEvaluator()
           
 
Method Summary
 int annotatedLabels()
           
 int correctAnnotatedLabels()
           
 double precision()
           
 double recall()
           
 int totalLabels()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dragon.ml.seqmodel.evaluate.Evaluator
evaluate
 

Field Detail

totalLabels

protected int totalLabels

annotatedLabels

protected int annotatedLabels

correctAnnotatedLabels

protected int correctAnnotatedLabels
Constructor Detail

AbstractEvaluator

public AbstractEvaluator()
Method Detail

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