public final class ExpandTitleToContentFilter extends java.lang.Object implements BoilerpipeFilter
TextBlock
s "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.Modifier and Type | Field and Description |
---|---|
static ExpandTitleToContentFilter |
INSTANCE |
Constructor and Description |
---|
ExpandTitleToContentFilter() |
Modifier and Type | Method and Description |
---|---|
static ExpandTitleToContentFilter |
getInstance()
Returns the singleton instance for ExpandTitleToContentFilter.
|
boolean |
process(TextDocument doc)
Processes the given document
doc . |
public static final ExpandTitleToContentFilter INSTANCE
public static ExpandTitleToContentFilter getInstance()
public boolean process(TextDocument doc) throws BoilerpipeProcessingException
BoilerpipeFilter
doc
.process
in interface BoilerpipeFilter
doc
- The TextDocument
that is to be processed.true
if changes have been made to the
TextDocument
.BoilerpipeProcessingException