public class ChunkerEvaluator extends Evaluator<ChunkSample>
ChunkerEvaluator measures the performance
of the given Chunker with the provided
reference ChunkSamples.Evaluator,
Chunker,
ChunkSample| Constructor and Description |
|---|
ChunkerEvaluator(Chunker chunker,
ChunkerEvaluationMonitor... listeners)
Initializes the current instance with the given
Chunker. |
| Modifier and Type | Method and Description |
|---|---|
FMeasure |
getFMeasure() |
protected ChunkSample |
processSample(ChunkSample reference)
Evaluates the given reference
ChunkSample object. |
evaluate, evaluateSamplepublic ChunkerEvaluator(Chunker chunker, ChunkerEvaluationMonitor... listeners)
Chunker.chunker - the Chunker to evaluate.listeners - evaluation listenersprotected ChunkSample processSample(ChunkSample reference)
ChunkSample object.
This is done by finding the phrases with the
Chunker in the sentence from the reference
ChunkSample. The found phrases are then used to
calculate and update the scores.processSample in class Evaluator<ChunkSample>reference - the reference ChunkSample.public FMeasure getFMeasure()
Copyright © 2016 The Apache Software Foundation. All rights reserved.