opennlp.tools.sentdetect
Class SentenceDetectorEvaluator
java.lang.Object
opennlp.tools.util.eval.Evaluator<SentenceSample>
opennlp.tools.sentdetect.SentenceDetectorEvaluator
public class SentenceDetectorEvaluator
- extends Evaluator<SentenceSample>
The SentenceDetectorEvaluator measures the performance of
the given SentenceDetector with the provided reference
SentenceSamples.
- See Also:
Evaluator,
SentenceDetector,
SentenceSample
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SentenceDetectorEvaluator
public SentenceDetectorEvaluator(SentenceDetector sentenceDetector)
- Initializes the current instance.
- Parameters:
sentenceDetector -
evaluateSample
public void evaluateSample(SentenceSample sample)
- Description copied from class:
Evaluator
- Evaluates the given reference object.
The implementation has to update the score after every invocation.
- Specified by:
evaluateSample in class Evaluator<SentenceSample>
- Parameters:
sample - the sample to be evaluated
getFMeasure
public FMeasure getFMeasure()
Copyright © 2010. All Rights Reserved.