public final class TrailingHeadlineToBoilerplateFilter extends Object implements BoilerpipeFilter
TextBlocks that have the label DefaultLabels.HEADING)
as boilerplate. Trailing means they are marked content and are below any other content block.| Modifier and Type | Field and Description |
|---|---|
static TrailingHeadlineToBoilerplateFilter |
INSTANCE |
| Constructor and Description |
|---|
TrailingHeadlineToBoilerplateFilter() |
| Modifier and Type | Method and Description |
|---|---|
static TrailingHeadlineToBoilerplateFilter |
getInstance()
Returns the singleton instance for ExpandTitleToContentFilter.
|
boolean |
process(TextDocument doc)
Processes the given document
doc. |
public static final TrailingHeadlineToBoilerplateFilter INSTANCE
public static TrailingHeadlineToBoilerplateFilter getInstance()
public boolean process(TextDocument doc) throws BoilerpipeProcessingException
BoilerpipeFilterdoc.process in interface BoilerpipeFilterdoc - The TextDocument that is to be processed.true if changes have been made to the
TextDocument.BoilerpipeProcessingExceptionCopyright © 2013-2014. All Rights Reserved.