|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.util.eval.Evaluator<POSSample>
opennlp.tools.postag.POSEvaluator
public class POSEvaluator
The POSEvaluator measures the performance of
the given POSTagger with the provided reference
POSSamplees.
| Constructor Summary | |
|---|---|
POSEvaluator(POSTagger tagger)
Initializes the current instance. |
|
| Method Summary | |
|---|---|
void |
evaluateSample(POSSample reference)
Evaluates the given reference POSSample object. |
double |
getWordAccuracy()
Retrieves the word accuracy. |
long |
getWordCount()
Retrieves the total number of words considered in the evaluation. |
java.lang.String |
toString()
Represents this objects as human readable String. |
| Methods inherited from class opennlp.tools.util.eval.Evaluator |
|---|
evaluate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public POSEvaluator(POSTagger tagger)
tagger - | Method Detail |
|---|
public void evaluateSample(POSSample reference)
POSSample object.
This is done by tagging the sentence from the reference
POSSample with the POSTagger. The
tags are then used to update the word accuracy score.
evaluateSample in class Evaluator<POSSample>reference - the reference POSSample.public double getWordAccuracy()
public long getWordCount()
public java.lang.String toString()
String.
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||