|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.l3s.boilerpipe.filters.heuristics.AddPrecedingLabelsFilter
public final class AddPrecedingLabelsFilter
Adds the labels of the preceding block to the current block, optionally adding a prefix.
| Field Summary | |
|---|---|
static AddPrecedingLabelsFilter |
INSTANCE
|
static AddPrecedingLabelsFilter |
INSTANCE_PRE
|
| Constructor Summary | |
|---|---|
AddPrecedingLabelsFilter(java.lang.String labelPrefix)
Creates a new AddPrecedingLabelsFilter instance. |
|
| 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 AddPrecedingLabelsFilter INSTANCE
public static final AddPrecedingLabelsFilter INSTANCE_PRE
| Constructor Detail |
|---|
public AddPrecedingLabelsFilter(java.lang.String labelPrefix)
AddPrecedingLabelsFilter instance.
maxBlocksDistance - The maximum distance in blocks.contentOnly - | Method Detail |
|---|
public boolean process(TextDocument doc)
throws BoilerpipeProcessingException
BoilerpipeFilterdoc.
process in interface BoilerpipeFilterdoc - 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 | |||||||||