Class LabelFusion
java.lang.Object
com.kohlschutter.boilerpipe.filters.heuristics.LabelFusion
- All Implemented Interfaces:
BoilerpipeFilter
Fuses adjacent blocks if their labels are equal.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanequalLabels(Set<String> labels, Set<String> labels2) markupLabelsOnly(Set<String> set1) booleanprocess(TextDocument doc) Processes the given documentdoc.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
LabelFusion
private LabelFusion()Creates a newLabelFusioninstance.
-
-
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
-
equalLabels
-
markupLabelsOnly
-