public class TokenNameFinderEvaluator extends Evaluator<NameSample>
TokenNameFinderEvaluator measures the performance
of the given TokenNameFinder with the provided
reference NameSamples.Evaluator,
TokenNameFinder,
NameSample| Constructor and Description |
|---|
TokenNameFinderEvaluator(TokenNameFinder nameFinder,
TokenNameFinderEvaluationMonitor... listeners)
Initializes the current instance with the given
TokenNameFinder. |
| Modifier and Type | Method and Description |
|---|---|
FMeasure |
getFMeasure() |
static void |
main(String[] args)
Deprecated.
|
protected NameSample |
processSample(NameSample reference)
Evaluates the given reference
NameSample object. |
evaluate, evaluateSamplepublic TokenNameFinderEvaluator(TokenNameFinder nameFinder, TokenNameFinderEvaluationMonitor... listeners)
TokenNameFinder.nameFinder - the TokenNameFinder to evaluate.listeners - evaluation sample listenersprotected NameSample processSample(NameSample 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.processSample in class Evaluator<NameSample>reference - the reference NameSample.NameSample.public FMeasure getFMeasure()
@Deprecated public static void main(String[] args) throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.