|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sen.filter.stream.CompoundWordFilter
public class CompoundWordFilter
A Filter that replaces a single Token with one or more
alternative Tokens. Can be used, for instance, to split
compound verbs or nouns into their constituent parts
| Constructor Summary | |
|---|---|
CompoundWordFilter(String compoundFile)
Creates a CompoundWordFilter from the given file |
|
| Method Summary | |
|---|---|
List<Token> |
postProcess(List<Token> tokens)
Post-processes analysed tokens |
void |
preProcess(Sentence sentence)
Pre-processes a sentence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundWordFilter(String compoundFile)
compoundFile - The compiled compound file| Method Detail |
|---|
public 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 | |||||||||