|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.core.Filter
org.egothor.parser.filter.ParagraphFilter
public final class ParagraphFilter
Filter sets the sentence, paragraph and sentenceInParagraph fields
in the Token class, just like the ParagraphPunctFilter
.
The only difference is that this filter removes from the Token sequence
only the paragraph delimiter tokens, but keeps other punctuation.
It is suitable for parsing document to be written to user, i.e.
in DocumentDuplicities.createReport(java.lang.String, boolean, boolean, double)
method.
Field Summary |
---|
Fields inherited from class org.egothor.core.Filter |
---|
prev |
Constructor Summary | |
---|---|
ParagraphFilter(Sequence<Token> prev)
Constructor for the ParagraphPunctFilter object |
Method Summary | |
---|---|
Token |
next()
Return the next token. |
Methods inherited from class org.egothor.core.Filter |
---|
action, getPrevTokenizer, setPrevTokenizer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParagraphFilter(Sequence<Token> prev)
prev
- tokenizer used by the filterMethod Detail |
---|
public Token next()
next
in interface Sequence<Token>
next
in class Filter
Filter.next()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |