de.l3s.boilerpipe.filters.heuristics
Class SimpleBlockFusionProcessor

java.lang.Object
  extended by de.l3s.boilerpipe.filters.heuristics.SimpleBlockFusionProcessor
All Implemented Interfaces:
BoilerpipeFilter

public class SimpleBlockFusionProcessor
extends java.lang.Object
implements BoilerpipeFilter

Merges two subsequent blocks if their text densities are equal.

Author:
Christian Kohlsch??tter

Field Summary
static SimpleBlockFusionProcessor INSTANCE
           
 
Constructor Summary
SimpleBlockFusionProcessor()
           
 
Method Summary
static SimpleBlockFusionProcessor getInstance()
          Returns the singleton instance for BlockFusionProcessor.
 boolean process(TextDocument doc)
          Processes the given document doc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SimpleBlockFusionProcessor INSTANCE
Constructor Detail

SimpleBlockFusionProcessor

public SimpleBlockFusionProcessor()
Method Detail

getInstance

public static SimpleBlockFusionProcessor getInstance()
Returns the singleton instance for BlockFusionProcessor.


process

public boolean process(TextDocument doc)
                throws BoilerpipeProcessingException
Description copied from interface: BoilerpipeFilter
Processes the given document doc.

Specified by:
process in interface BoilerpipeFilter
Parameters:
doc - The TextDocument that is to be processed.
Returns:
true if changes have been made to the TextDocument.
Throws:
BoilerpipeProcessingException