|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.hmm.HmmEvaluator
TaggerEvaluator,
MarginalTaggerEvaluator and
NBestTaggerEvaluator instead.
@Deprecated public class HmmEvaluator
An HmmEvaluator provides an evaluation mechanism for
HMMs. An evaluator is constructed with an HMM, the array of tags
used, and a limit on how far the n-best list is searched. It
implements the TagHandler interface, which specifies the
handle(String[],String[],String[]) method. This method
will receive reference taggins in the form of arrays of tokens,
whitespaces (which are ignored), and a reference tagging. It then
runs an HMM decoder based on the specified HMM over the input to
produce responses in the form of a first-best response, a
confidence-based lattice response and an n-best iterator response.
At any point in the sequence of test cases, the evaluation returned
by evaluation() may be inspected.
| Constructor Summary | |
|---|---|
HmmEvaluator(HiddenMarkovModel hmm,
String[] tags,
int nBest)
Deprecated. |
|
HmmEvaluator(HmmDecoder decoder,
HmmEvaluation evaluation)
Deprecated. |
|
| Method Summary | |
|---|---|
HmmEvaluation |
evaluation()
Deprecated. |
void |
handle(String[] tokens,
String[] whitespaces,
String[] referenceTags)
Deprecated. Handle the specified tokens and reference tags as a test case, ignoring the whitespaces value. |
String |
lastCaseToString()
Deprecated. Return a string-based representation of the results for the last case handled by this evaluator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public HmmEvaluator(HiddenMarkovModel hmm,
String[] tags,
int nBest)
hmm - Hidden Markov model to use for tagging.tags - Array of outcome tags in the specified model.nBest - Maximum number of n-best results to evaluate per case.
@Deprecated
public HmmEvaluator(HmmDecoder decoder,
HmmEvaluation evaluation)
| Method Detail |
|---|
public void handle(String[] tokens,
String[] whitespaces,
String[] referenceTags)
null. For each call to this method, the
HMM being evaluated will be run over the tokens to produce
first-best, lattice and n-best outputs, which are then
used to populate an HMM evaluation.
handle in interface TagHandlertokens - Tokens for evaluation.whitespaces - Ignored.referenceTags - Reference tags for evaluation.
IllegalArgumentException - If the token and tag arrays
are not the same length; whitespaces are not checked.public String lastCaseToString()
Note that cumulative results are available from the HMM
evaluation returned by evaluation().
@Deprecated public HmmEvaluation evaluation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||