|
||||||||||
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.tsf.Target2BIOFormat
public class Target2BIOFormat
Creates a LabelSequence
out of a TokenSequence
that
is the target of an Instance
. Labels are constructed out of
each Token in the TokenSequence to conform with BIO format (Begin,
Inside, Outside of Segment). Prepends a "B-" to Tokens that leave a
background state and an "I-" to tags that have the same label as
the previous Token. NOTE: This class assumes that subsequent
identical tags belong to the same Segment. This means that you
cannot have B B I, only B I I.
Constructor Summary | |
---|---|
Target2BIOFormat()
|
|
Target2BIOFormat(java.lang.String background)
|
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 Target2BIOFormat()
public Target2BIOFormat(java.lang.String background)
background
- represents Tokens that are not part of a target
Segment.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 |