Class ExpandTitleToContentFilter
- java.lang.Object
-
- de.l3s.boilerpipe.filters.heuristics.ExpandTitleToContentFilter
-
- All Implemented Interfaces:
BoilerpipeFilter
public final class ExpandTitleToContentFilter extends java.lang.Object implements BoilerpipeFilter
Marks allTextBlocks "content" which are between the headline and the part that has already been marked content, if they are markedDefaultLabels.MIGHT_BE_CONTENT. This filter is quite specific to the news domain.
-
-
Field Summary
Fields Modifier and Type Field Description static ExpandTitleToContentFilterINSTANCE
-
Constructor Summary
Constructors Constructor Description ExpandTitleToContentFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExpandTitleToContentFiltergetInstance()Returns the singleton instance for ExpandTitleToContentFilter.booleanprocess(TextDocument doc)Processes the given documentdoc.
-
-
-
Field Detail
-
INSTANCE
public static final ExpandTitleToContentFilter INSTANCE
-
-
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: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
-
-