de.l3s.boilerpipe.filters.heuristics
Class ExpandTitleToContentFilter

java.lang.Object
  extended by de.l3s.boilerpipe.filters.heuristics.ExpandTitleToContentFilter
All Implemented Interfaces:
BoilerpipeFilter

public final class ExpandTitleToContentFilter
extends java.lang.Object
implements BoilerpipeFilter

Marks all TextBlocks "content" which are between the headline and the part that has already been marked content, if they are marked DefaultLabels.MIGHT_BE_CONTENT. This filter is quite specific to the news domain.

Author:
Christian Kohlsch??tter

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

ExpandTitleToContentFilter

public ExpandTitleToContentFilter()
Method Detail

getInstance

public static ExpandTitleToContentFilter getInstance()
Returns the singleton instance for ExpandTitleToContentFilter.


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