|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sen.filter.stream.CompositeTokenFilter
public class CompositeTokenFilter
A Filter that replaces multiple similar Tokens with a single
composite Token
| Constructor Summary | |
|---|---|
CompositeTokenFilter()
|
|
| Method Summary | |
|---|---|
List<Token> |
postProcess(List<Token> tokens)
Post-processes analysed tokens |
void |
preProcess(Sentence sentence)
Pre-processes a sentence |
void |
readRules(BufferedReader reader)
Reads the rules to apply as space-delimited text |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeTokenFilter()
| Method Detail |
|---|
public void readRules(BufferedReader reader)
throws IOException
reader - The reader from which to read the rules
IOExceptionpublic void preProcess(Sentence sentence)
StreamFilter
preProcess in interface StreamFiltersentence - The sentence be pre-processedpublic List<Token> postProcess(List<Token> tokens)
StreamFilter
postProcess in interface StreamFiltertokens - The analysed tokens
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||