org.annolab.tt4j
Interface ProbabilityHandler<O>

All Superinterfaces:
TokenHandler<O>

public interface ProbabilityHandler<O>
extends TokenHandler<O>

A TokenHandler can implement this interface to get probability information when TreeTaggerWrapper.setProbabilityThreshold(Double) is used.

Author:
Richard Eckart de Castilho

Method Summary
 void probability(String pos, String lemma, double probability)
          Process the probabilities for the last token provided to TokenHandler.token(O, java.lang.String, java.lang.String).
 
Methods inherited from interface org.annolab.tt4j.TokenHandler
token
 

Method Detail

probability

void probability(String pos,
                 String lemma,
                 double probability)
Process the probabilities for the last token provided to TokenHandler.token(O, java.lang.String, java.lang.String).

Parameters:
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 © 2012. All Rights Reserved.