|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.sentences.SentenceEvaluator
public class SentenceEvaluator
A SentenceEvaluator handles reference chunkings by
constructing a response chunking and adding them to a sentence
evaluation. The resulting evaluation may be retrieved through the
method evaluation() at any time.
This evaluator class implements the ObjectHandler<Chunking> interface. The chunkings passed to the
handle(Chunking) method are treated as reference
chunkings. Their character sequence is extracted using Chunking.charSequence() and the contained sentence chunker is used
to produce a response chunking over the character sequence. The
resulting pair of chunkings is passed to the contained sentence
evaluation.
| Constructor Summary | |
|---|---|
SentenceEvaluator(SentenceChunker sentenceChunker)
Construct a sentence evaluator using the specified sentence chunker to construct responses. |
|
| Method Summary | |
|---|---|
SentenceEvaluation |
evaluation()
Return the evaluation for this evaluator. |
void |
handle(Chunking refChunking)
Handle the specified reference chunking by extracting its character sequence, producing a response chunking from the contained sentence chunker, and adding the reference and result to the evaluation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SentenceEvaluator(SentenceChunker sentenceChunker)
sentenceChunker - Sentence chunker for responses.| Method Detail |
|---|
public void handle(Chunking refChunking)
handle in interface ObjectHandler<Chunking>refChunking - Refernece chunking.public SentenceEvaluation evaluation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||