Class ExpandTitleToContentFilter
java.lang.Object
com.kohlschutter.boilerpipe.filters.heuristics.ExpandTitleToContentFilter
- All Implemented Interfaces:
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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpandTitleToContentFilterReturns the singleton instance for ExpandTitleToContentFilter.booleanprocess(TextDocument doc) Processes the given documentdoc.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ExpandTitleToContentFilter
public ExpandTitleToContentFilter()
-
-
Method Details
-
getInstance
Returns the singleton instance for ExpandTitleToContentFilter. -
process
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
-