de.l3s.boilerpipe.filters.simple
Class LabelToBoilerplateFilter

java.lang.Object
  extended by 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".

Author:
Christian Kohlschütter

Field Summary
static LabelToBoilerplateFilter INSTANCE_STRICTLY_NOT_CONTENT
           
 
Constructor Summary
LabelToBoilerplateFilter(java.lang.String... label)
           
 
Method Summary
 boolean process(TextDocument doc)
          Processes the given document doc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE_STRICTLY_NOT_CONTENT

public static final LabelToBoilerplateFilter INSTANCE_STRICTLY_NOT_CONTENT
Constructor Detail

LabelToBoilerplateFilter

public LabelToBoilerplateFilter(java.lang.String... label)
Method Detail

process

public boolean process(TextDocument doc)
                throws BoilerpipeProcessingException
Description copied from interface: BoilerpipeFilter
Processes the given document doc.

Specified by:
process in interface BoilerpipeFilter
Parameters:
doc - The TextDocument that is to be processed.
Returns:
true if changes have been made to the TextDocument.
Throws:
BoilerpipeProcessingException