public final class BoilerplateBlockFilter extends Object implements BoilerpipeFilter
TextBlocks which have explicitly been marked as
"not content".| Modifier and Type | Field and Description |
|---|---|
static BoilerplateBlockFilter |
INSTANCE |
static BoilerplateBlockFilter |
INSTANCE_KEEP_TITLE |
| Constructor and Description |
|---|
BoilerplateBlockFilter(String labelToKeep) |
| Modifier and Type | Method and Description |
|---|---|
static BoilerplateBlockFilter |
getInstance()
Returns the singleton instance for BoilerplateBlockFilter.
|
boolean |
process(TextDocument doc)
Processes the given document
doc. |
public static final BoilerplateBlockFilter INSTANCE
public static final BoilerplateBlockFilter INSTANCE_KEEP_TITLE
public BoilerplateBlockFilter(String labelToKeep)
public static BoilerplateBlockFilter 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.