|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.util.eval.Evaluator<ChunkSample>
opennlp.tools.chunker.ChunkerEvaluator
public class ChunkerEvaluator
The ChunkerEvaluator measures the performance
of the given Chunker with the provided
reference ChunkSamples.
Evaluator,
Chunker,
ChunkSample| Constructor Summary | |
|---|---|
ChunkerEvaluator(Chunker chunker)
Initializes the current instance with the given Chunker. |
|
| Method Summary | |
|---|---|
void |
evaluateSample(ChunkSample reference)
Evaluates the given reference ChunkSample object. |
FMeasure |
getFMeasure()
|
| Methods inherited from class opennlp.tools.util.eval.Evaluator |
|---|
evaluate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChunkerEvaluator(Chunker chunker)
Chunker.
chunker - the Chunker to evaluate.| Method Detail |
|---|
public void evaluateSample(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.
evaluateSample in class Evaluator<ChunkSample>reference - the reference ChunkSample.public FMeasure getFMeasure()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||