Class NumWordsRulesExtractor
java.lang.Object
com.kohlschutter.boilerpipe.extractors.ExtractorBase
com.kohlschutter.boilerpipe.extractors.NumWordsRulesExtractor
- All Implemented Interfaces:
BoilerpipeExtractor, BoilerpipeFilter
A quite generic full-text extractor solely based upon the number of words per block (the current,
the previous and the next block).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NumWordsRulesExtractorReturns the singleton instance forNumWordsRulesExtractor.booleanprocess(TextDocument doc) Processes the given documentdoc.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NumWordsRulesExtractor
public NumWordsRulesExtractor()
-
-
Method Details
-
getInstance
Returns the singleton instance forNumWordsRulesExtractor. -
process
Description copied from interface:BoilerpipeFilterProcesses the given documentdoc.- Parameters:
doc- TheTextDocumentthat is to be processed.- Returns:
trueif changes have been made to theTextDocument.- Throws:
BoilerpipeProcessingException
-