opennlp.tools.namefind
Class TokenNameFinderEvaluator
java.lang.Object
opennlp.tools.util.eval.Evaluator<NameSample>
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenNameFinderEvaluator
public TokenNameFinderEvaluator(TokenNameFinder nameFinder)
- Initializes the current instance with the given
TokenNameFinder.
- Parameters:
nameFinder - the TokenNameFinder to evaluate.
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(java.lang.String[] args)
throws java.io.IOException,
InvalidFormatException
- Deprecated.
- Throws:
java.io.IOException
InvalidFormatException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.