Class MinFulltextWordsFilter
java.lang.Object
de.l3s.boilerpipe.filters.english.MinFulltextWordsFilter
- All Implemented Interfaces:
BoilerpipeFilter
Keeps only those content blocks which contain at least k full-text words
(measured by
HeuristicFilterBase.getNumFullTextWords(TextBlock)). k is 30 by default.- Author:
- Christian Kohlschütter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MinFulltextWordsFilterprotected static intprotected static intgetNumFullTextWords(TextBlock tb, float minTextDensity) booleanprocess(TextDocument doc) Processes the given documentdoc.
-
Field Details
-
DEFAULT_INSTANCE
-
-
Constructor Details
-
MinFulltextWordsFilter
public MinFulltextWordsFilter(int minWords)
-
-
Method Details
-
getDefaultInstance
-
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
-
getNumFullTextWords
-
getNumFullTextWords
-