Class TrailingHeadlineToBoilerplateFilter
java.lang.Object
com.kohlschutter.boilerpipe.filters.heuristics.TrailingHeadlineToBoilerplateFilter
- All Implemented Interfaces:
BoilerpipeFilter
Marks trailing headlines (
TextBlocks that have the label DefaultLabels.HEADING)
as boilerplate. Trailing means they are marked content and are below any other content block.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the singleton instance for ExpandTitleToContentFilter.booleanprocess(TextDocument doc) Processes the given documentdoc.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
TrailingHeadlineToBoilerplateFilter
public TrailingHeadlineToBoilerplateFilter()
-
-
Method Details
-
getInstance
Returns the singleton instance for ExpandTitleToContentFilter. -
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
-