|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sen.filter.stream.CommentFilter
public class CommentFilter
A filter to ignore delimited comments in the input sentence
| Field Summary | |
|---|---|
protected List<net.java.sen.filter.stream.CommentFilter.Rule> |
ruleList
The list of rules defining the start and end of comments, and the part-of-speech code to be used in the Tokens
used to replace them |
| Constructor Summary | |
|---|---|
CommentFilter()
|
|
| 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 |
| Field Detail |
|---|
protected List<net.java.sen.filter.stream.CommentFilter.Rule> ruleList
Tokens
used to replace them
| Constructor Detail |
|---|
public CommentFilter()
| 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 | |||||||||