Class AddPrecedingLabelsFilter
java.lang.Object
com.kohlschutter.boilerpipe.filters.heuristics.AddPrecedingLabelsFilter
- All Implemented Interfaces:
BoilerpipeFilter
Adds the labels of the preceding block to the current block, optionally adding a prefix.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AddPrecedingLabelsFilterstatic final AddPrecedingLabelsFilterprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionAddPrecedingLabelsFilter(String labelPrefix) Creates a newAddPrecedingLabelsFilterinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(TextDocument doc) Processes the given documentdoc.
-
Field Details
-
INSTANCE
-
INSTANCE_PRE
-
labelPrefix
-
-
Constructor Details
-
AddPrecedingLabelsFilter
Creates a newAddPrecedingLabelsFilterinstance.- 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
-