|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.l3s.boilerpipe.filters.heuristics.KeepLargestBlockFilter
public final class KeepLargestBlockFilter
Keeps the largest TextBlock
only (by the number of words). In case of
more than one block with the same number of words, the first block is chosen.
All discarded blocks are marked "not content" and flagged as
DefaultLabels.MIGHT_BE_CONTENT
.
Field Summary | |
---|---|
static KeepLargestBlockFilter |
INSTANCE
|
Constructor Summary | |
---|---|
KeepLargestBlockFilter()
|
Method Summary | |
---|---|
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 |
---|
public static final KeepLargestBlockFilter INSTANCE
Constructor Detail |
---|
public KeepLargestBlockFilter()
Method Detail |
---|
public boolean process(TextDocument doc) throws BoilerpipeProcessingException
BoilerpipeFilter
doc
.
process
in interface BoilerpipeFilter
doc
- The TextDocument
that is to be processed.
true
if changes have been made to the
TextDocument
.
BoilerpipeProcessingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |