public class Target2BIOFormat extends Pipe implements Serializable
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 and Description |
|---|
Target2BIOFormat() |
Target2BIOFormat(String background) |
| Modifier and Type | Method and Description |
|---|---|
Instance |
pipe(Instance carrier)
Process an Instance.
|
getDataAlphabet, getInstanceId, getParent, getParentRoot, getTargetAlphabet, isDataAlphabetSet, isTargetProcessing, pipe, readResolve, resolveDataAlphabet, resolveTargetAlphabet, setDataAlphabet, setParent, setTargetAlphabet, setTargetProcessingpublic Target2BIOFormat()
public Target2BIOFormat(String background)
background - represents Tokens that are not part of a target
Segment.public Instance pipe(Instance carrier)
PipeOne can create a new concrete subclass of Pipe simply by implementing this method.
Copyright © 2019 JULIE Lab, Germany. All rights reserved.