public class CompoundWordFilter extends Object implements StreamFilter
Token with one or more
alternative Tokens. Can be used, for instance, to split
compound verbs or nouns into their constituent parts| Constructor and Description |
|---|
CompoundWordFilter(String compoundFile)
Creates a CompoundWordFilter from the given file
|
| Modifier and Type | Method and Description |
|---|---|
List<Token> |
postProcess(List<Token> tokens)
Post-processes analysed tokens
|
void |
preProcess(Sentence sentence)
Pre-processes a sentence
|
public CompoundWordFilter(String compoundFile)
compoundFile - The compiled compound filepublic void preProcess(Sentence sentence)
StreamFilterpreProcess in interface StreamFiltersentence - The sentence be pre-processedpublic List<Token> postProcess(List<Token> tokens)
StreamFilterpostProcess in interface StreamFiltertokens - The analysed tokens