Package de.l3s.boilerpipe.estimators
Class SimpleEstimator
- java.lang.Object
-
- de.l3s.boilerpipe.estimators.SimpleEstimator
-
public final class SimpleEstimator extends java.lang.ObjectEstimates the "goodness" of aBoilerpipeExtractoron a given document.
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleEstimatorINSTANCEReturns the singleton instance ofSimpleEstimator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisLowQuality(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 Detail
-
INSTANCE
public static final SimpleEstimator INSTANCE
Returns the singleton instance ofSimpleEstimator
-
-
Method Detail
-
isLowQuality
public boolean isLowQuality(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.- Parameters:
dsBefore-dsAfter-- Returns:
- true if low quality is to be expected.
-
-