Class SimpleEstimator
java.lang.Object
com.kohlschutter.boilerpipe.estimators.SimpleEstimator
Estimates the "goodness" of a
BoilerpipeExtractor on a given document.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleEstimatorReturns the singleton instance ofSimpleEstimator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLowQuality(TextDocumentStatistics dsBefore, TextDocumentStatistics dsAfter) Given the statistics of the document before and after applying theBoilerpipeExtractor, can we regard the extraction quality (too) low? Works well withDefaultExtractor,ArticleExtractorand others.
-
Field Details
-
INSTANCE
Returns the singleton instance ofSimpleEstimator
-
-
Constructor Details
-
SimpleEstimator
private SimpleEstimator()
-
-
Method Details
-
isLowQuality
Given the statistics of the document before and after applying theBoilerpipeExtractor, can we regard the extraction quality (too) low? Works well withDefaultExtractor,ArticleExtractorand others.- Parameters:
dsBefore-dsAfter-- Returns:
- true if low quality is to be expected.
-