opennlp.tools.namefind
Class TokenNameFinderEvaluator

java.lang.Object
  extended by opennlp.tools.util.eval.Evaluator<NameSample>
      extended by opennlp.tools.namefind.TokenNameFinderEvaluator

public class TokenNameFinderEvaluator
extends Evaluator<NameSample>

The TokenNameFinderEvaluator measures the performance of the given TokenNameFinder with the provided reference NameSamples.

See Also:
Evaluator, TokenNameFinder, NameSample

Constructor Summary
TokenNameFinderEvaluator(TokenNameFinder nameFinder)
          Initializes the current instance with the given TokenNameFinder.
 
Method Summary
 void evaluateSample(NameSample reference)
          Evaluates the given reference NameSample object.
 FMeasure getFMeasure()
           
static void main(String[] args)
          Deprecated. 
 
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

TokenNameFinderEvaluator

public TokenNameFinderEvaluator(TokenNameFinder nameFinder)
Initializes the current instance with the given TokenNameFinder.

Parameters:
nameFinder - the TokenNameFinder to evaluate.
Method Detail

evaluateSample

public void evaluateSample(NameSample reference)
Evaluates the given reference NameSample object. This is done by finding the names with the TokenNameFinder in the sentence from the reference NameSample. The found names are then used to calculate and update the scores.

Specified by:
evaluateSample in class Evaluator<NameSample>
Parameters:
reference - the reference NameSample.

getFMeasure

public FMeasure getFMeasure()

main

@Deprecated
public static void main(String[] args)
                 throws IOException,
                        InvalidFormatException
Deprecated. 

Throws:
IOException
InvalidFormatException


Copyright © 2010. All Rights Reserved.