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