public interface ProbabilityHandler<O> extends TokenHandler<O>
TokenHandler can implement this interface to get probability information when
TreeTaggerWrapper.setProbabilityThreshold(Double) is used.| Modifier and Type | Method and Description |
|---|---|
void |
probability(java.lang.String pos,
java.lang.String lemma,
double probability)
Process the probabilities for the last token provided to
TokenHandler.token(O, java.lang.String, java.lang.String). |
tokenvoid probability(java.lang.String pos,
java.lang.String lemma,
double probability)
TokenHandler.token(O, java.lang.String, java.lang.String).pos - the Part-of-Speech tag as produced by TreeTagger or null.lemma - the lemma as produced by TreeTagger or null.probability - the probability of the tag/lemma.Copyright © 2014. All Rights Reserved.