Class IgnoreBlocksAfterContentFromEndFilter
java.lang.Object
de.l3s.boilerpipe.filters.english.IgnoreBlocksAfterContentFromEndFilter
- All Implemented Interfaces:
BoilerpipeFilter
Marks all blocks as "non-content" that occur after blocks that have been
marked
DefaultLabels.INDICATES_END_OF_TEXT, and after any content block.
This filter can be used in conjunction with an upstream TerminatingBlocksFinder.- Author:
- Christian Kohlschütter
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected static intprotected static intgetNumFullTextWords(TextBlock tb, float minTextDensity) booleanprocess(TextDocument doc) Processes the given documentdoc.
-
Field Details
-
INSTANCE
-
-
Method Details
-
process
Description copied from interface:BoilerpipeFilterProcesses the given documentdoc.- Specified by:
processin interfaceBoilerpipeFilter- Parameters:
doc- TheTextDocumentthat is to be processed.- Returns:
trueif changes have been made to theTextDocument.- Throws:
BoilerpipeProcessingException
-
getNumFullTextWords
-
getNumFullTextWords
-