Class LabelFusion
java.lang.Object
de.l3s.boilerpipe.filters.heuristics.LabelFusion
- All Implemented Interfaces:
BoilerpipeFilter
Fuses adjacent blocks if their labels are equal.
- Author:
- Christian Kohlschütter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(TextDocument doc) Processes the given documentdoc.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
LabelFusion
Creates a newLabelFusioninstance.- Parameters:
maxBlocksDistance- The maximum distance in blocks.contentOnly-
-
-
Method Details
-
process
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
-