public class ChunkerEvaluator extends Evaluator<ChunkSample>
ChunkerEvaluator
measures the performance
of the given Chunker
with the provided
reference ChunkSample
s.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, evaluateSample
public 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 © 2015 The Apache Software Foundation. All rights reserved.