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 NameSample
s.
- See Also:
Evaluator
,
TokenNameFinder
,
NameSample
Methods inherited from class java.lang.Object |
clone, equals, finalize, 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(String[] args)
throws IOException,
InvalidFormatException
- Deprecated.
- Throws:
IOException
InvalidFormatException
Copyright © 2010. All Rights Reserved.