|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.pipe.Pipe cc.mallet.pipe.TargetRememberLastLabel
public class TargetRememberLastLabel
For each position in the target, remember the last non-background label. Assumes that the target of piped instances is a LabelSequence. Replaces the target with a LabelsSequence where row 0 is the original labels, and row 1 is the last label.
Constructor Summary | |
---|---|
TargetRememberLastLabel()
|
|
TargetRememberLastLabel(java.lang.String backgroundLabel,
boolean offset)
offset determines how the memory and base sequences will be aligned. |
Method Summary | |
---|---|
Instance |
pipe(Instance carrier)
Really this should be 'protected', but isn't for historical reasons. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TargetRememberLastLabel()
public TargetRememberLastLabel(java.lang.String backgroundLabel, boolean offset)
MEM O O S S S E L BASE O S S O E L Ootherwise, they'll be aligned like this:
MEM O S S S E E L BASE O S S O E L O
Method Detail |
---|
public Instance pipe(Instance carrier)
Pipe
pipe
in class Pipe
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |