opennlp.tools.sentdetect
Class SentenceDetectorEvaluator

java.lang.Object
  extended by opennlp.tools.util.eval.Evaluator<SentenceSample>
      extended by 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

Constructor Summary
SentenceDetectorEvaluator(SentenceDetector sentenceDetector)
          Initializes the current instance.
 
Method Summary
 void evaluateSample(SentenceSample sample)
          Evaluates the given reference object.
 FMeasure getFMeasure()
           
 
Methods inherited from class opennlp.tools.util.eval.Evaluator
evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SentenceDetectorEvaluator

public SentenceDetectorEvaluator(SentenceDetector sentenceDetector)
Initializes the current instance.

Parameters:
sentenceDetector -
Method Detail

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.