de.l3s.boilerpipe.filters.english
Class TerminatingBlocksFinder

java.lang.Object
  extended by de.l3s.boilerpipe.filters.english.TerminatingBlocksFinder
All Implemented Interfaces:
BoilerpipeFilter

public class TerminatingBlocksFinder
extends java.lang.Object
implements BoilerpipeFilter

Finds blocks which are potentially indicating the end of an article text and marks them with DefaultLabels.INDICATES_END_OF_TEXT. This can be used in conjunction with a downstream IgnoreBlocksAfterContentFilter.

Author:
Christian Kohlsch??tter
See Also:
IgnoreBlocksAfterContentFilter

Field Summary
static TerminatingBlocksFinder INSTANCE
           
 
Constructor Summary
TerminatingBlocksFinder()
           
 
Method Summary
static TerminatingBlocksFinder 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 TerminatingBlocksFinder INSTANCE
Constructor Detail

TerminatingBlocksFinder

public TerminatingBlocksFinder()
Method Detail

getInstance

public static TerminatingBlocksFinder 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