Package de.l3s.boilerpipe.filters.simple
Class SplitParagraphBlocksFilter
- java.lang.Object
-
- de.l3s.boilerpipe.filters.simple.SplitParagraphBlocksFilter
-
- All Implemented Interfaces:
BoilerpipeFilter
public final class SplitParagraphBlocksFilter extends java.lang.Object implements BoilerpipeFilter
Splits TextBlocks at paragraph boundaries. NOTE: This is not fully supported (i.e., it will break highlighting support via #getContainedTextElements()), but this one probably is necessary for some other filters.- See Also:
MinClauseWordsFilter
-
-
Field Summary
Fields Modifier and Type Field Description static SplitParagraphBlocksFilterINSTANCE
-
Constructor Summary
Constructors Constructor Description SplitParagraphBlocksFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SplitParagraphBlocksFiltergetInstance()Returns the singleton instance for TerminatingBlocksFinder.booleanprocess(TextDocument doc)Processes the given documentdoc.
-
-
-
Field Detail
-
INSTANCE
public static final SplitParagraphBlocksFilter INSTANCE
-
-
Method Detail
-
getInstance
public static SplitParagraphBlocksFilter getInstance()
Returns the singleton instance for TerminatingBlocksFinder.
-
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
-
-