Package de.l3s.boilerpipe.filters.simple
Class BoilerplateBlockFilter
- java.lang.Object
-
- de.l3s.boilerpipe.filters.simple.BoilerplateBlockFilter
-
- All Implemented Interfaces:
BoilerpipeFilter
public final class BoilerplateBlockFilter extends java.lang.Object implements BoilerpipeFilter
RemovesTextBlocks which have explicitly been marked as "not content".
-
-
Field Summary
Fields Modifier and Type Field Description static BoilerplateBlockFilterINSTANCE
-
Constructor Summary
Constructors Constructor Description BoilerplateBlockFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoilerplateBlockFiltergetInstance()Returns the singleton instance for BoilerplateBlockFilter.booleanprocess(TextDocument doc)Processes the given documentdoc.
-
-
-
Field Detail
-
INSTANCE
public static final BoilerplateBlockFilter INSTANCE
-
-
Method Detail
-
getInstance
public static BoilerplateBlockFilter getInstance()
Returns the singleton instance for BoilerplateBlockFilter.
-
process
public boolean process(TextDocument doc) throws BoilerpipeProcessingException
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
-
-