Package de.l3s.boilerpipe.extractors
Class NumWordsRulesExtractor
- java.lang.Object
-
- de.l3s.boilerpipe.extractors.ExtractorBase
-
- de.l3s.boilerpipe.extractors.NumWordsRulesExtractor
-
- All Implemented Interfaces:
BoilerpipeExtractor,BoilerpipeFilter
public class NumWordsRulesExtractor extends ExtractorBase
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 Modifier and Type Field Description static NumWordsRulesExtractorINSTANCE
-
Constructor Summary
Constructors Constructor Description NumWordsRulesExtractor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NumWordsRulesExtractorgetInstance()Returns the singleton instance forNumWordsRulesExtractor.booleanprocess(TextDocument doc)Processes the given documentdoc.
-
-
-
Field Detail
-
INSTANCE
public static final NumWordsRulesExtractor INSTANCE
-
-
Method Detail
-
getInstance
public static NumWordsRulesExtractor getInstance()
Returns the singleton instance forNumWordsRulesExtractor.
-
process
public boolean process(TextDocument doc) throws BoilerpipeProcessingException
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
-
-