net.java.sen.filter
Interface StreamFilter

All Known Implementing Classes:
CommentFilter, CompositeTokenFilter, CompoundWordFilter

public interface StreamFilter

Represents a Node filter capable of both pre- and post-processing. Filters are applied as follows:


Method Summary
 List<Token> postProcess(List<Token> tokens)
          Post-processes analysed tokens
 void preProcess(Sentence sentence)
          Pre-processes a sentence
 

Method Detail

preProcess

void preProcess(Sentence sentence)
Pre-processes a sentence

Parameters:
sentence - The sentence be pre-processed

postProcess

List<Token> postProcess(List<Token> tokens)
Post-processes analysed tokens

Parameters:
tokens - The analysed tokens
Returns:
The post-processed tokens


Copyright © 2012. All Rights Reserved.