Package de.l3s.boilerpipe.filters.simple
Class LabelToBoilerplateFilter
- java.lang.Object
-
- de.l3s.boilerpipe.filters.simple.LabelToBoilerplateFilter
-
- All Implemented Interfaces:
BoilerpipeFilter
public final class LabelToBoilerplateFilter extends java.lang.Object implements BoilerpipeFilter
Marks all blocks that contain a given label as "boilerplate".
-
-
Field Summary
Fields Modifier and Type Field Description static LabelToBoilerplateFilterINSTANCE_STRICTLY_NOT_CONTENT
-
Constructor Summary
Constructors Constructor Description LabelToBoilerplateFilter(java.lang.String... label)
-
Method Summary
Modifier and Type Method Description booleanprocess(TextDocument doc)Processes the given documentdoc.
-
-
-
Field Detail
-
INSTANCE_STRICTLY_NOT_CONTENT
public static final LabelToBoilerplateFilter INSTANCE_STRICTLY_NOT_CONTENT
-
-
Method Detail
-
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
-
-