de.l3s.boilerpipe.estimators
Class SimpleEstimator

java.lang.Object
  extended by de.l3s.boilerpipe.estimators.SimpleEstimator

public final class SimpleEstimator
extends java.lang.Object

Estimates the "goodness" of a BoilerpipeExtractor on a given document.

Author:
Christian Kohlsch??tter

Field Summary
static SimpleEstimator INSTANCE
          Returns the singleton instance of SimpleEstimator
 
Method Summary
 boolean isLowQuality(TextDocumentStatistics dsBefore, TextDocumentStatistics dsAfter)
          Given the statistics of the document before and after applying the BoilerpipeExtractor, can we regard the extraction quality (too) low? Works well with DefaultExtractor, ArticleExtractor and others.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SimpleEstimator INSTANCE
Returns the singleton instance of SimpleEstimator

Method Detail

isLowQuality

public boolean isLowQuality(TextDocumentStatistics dsBefore,
                            TextDocumentStatistics dsAfter)
Given the statistics of the document before and after applying the BoilerpipeExtractor, can we regard the extraction quality (too) low? Works well with DefaultExtractor, ArticleExtractor and others.

Parameters:
dsBefore -
dsAfter -
Returns:
true if low quality is to be expected.