public class TokenNameFinderEvaluator extends Evaluator<NameSample>
TokenNameFinderEvaluator
measures the performance
of the given TokenNameFinder
with the provided
reference NameSample
s.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, evaluateSample
public 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
IOException
InvalidFormatException
Copyright © 2015 The Apache Software Foundation. All rights reserved.