org.annolab.tt4j
Interface TokenHandler<O>

Type Parameters:
O - the token type.
All Known Subinterfaces:
ProbabilityHandler<O>

public interface TokenHandler<O>

A token handler receives a notification for each tagged token.

Author:
Richard Eckart de Castilho

Method Summary
 void token(O token, String pos, String lemma)
          Process a token that TreeTagger has analyzed.
 

Method Detail

token

void token(O token,
           String pos,
           String lemma)
Process a token that TreeTagger has analyzed.

Parameters:
token - the one of the token objects passed to TreeTaggerWrapper.process(java.util.Collection)
pos - the Part-of-Speech tag as produced by TreeTagger or null.
lemma - the lemma as produced by TreeTagger or null.


Copyright © 2012. All Rights Reserved.