de.l3s.boilerpipe.filters.simple
Class SplitParagraphBlocksFilter

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

Author:
Christian Kohlschütter
See Also:
MinClauseWordsFilter

Field Summary
static SplitParagraphBlocksFilter INSTANCE
           
 
Constructor Summary
SplitParagraphBlocksFilter()
           
 
Method Summary
static SplitParagraphBlocksFilter getInstance()
          Returns the singleton instance for TerminatingBlocksFinder.
 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

public static final SplitParagraphBlocksFilter INSTANCE
Constructor Detail

SplitParagraphBlocksFilter

public SplitParagraphBlocksFilter()
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: 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