public class SimpleTaggerSentence2TokenSequence extends Pipe
TokenSequence. If target processing
is on (training or labeled test data), it extracts element labels
from the external encoding to create a target LabelSequence.
Two external encodings are supported:
Both represent rows of tokens. When target processing is on, the last token
in each row is the label of the sequence element represented by
this row. All other tokens in the row, or all tokens in the row if
not target processing, are the names of features that are on for
the sequence element described by the row.| Constructor and Description |
|---|
SimpleTaggerSentence2TokenSequence()
Creates a new
SimpleTaggerSentence2TokenSequence instance. |
SimpleTaggerSentence2TokenSequence(boolean inc)
creates a new
SimpleTaggerSentence2TokenSequence instance
which includes tokens as features iff the supplied argument is true. |
| Modifier and Type | Method and Description |
|---|---|
Instance |
pipe(Instance carrier)
Takes an instance with data of type String or String[][] and creates
an Instance of type TokenSequence.
|
getDataAlphabet, getInstanceId, getParent, getParentRoot, getTargetAlphabet, isDataAlphabetSet, isTargetProcessing, pipe, readResolve, resolveDataAlphabet, resolveTargetAlphabet, setDataAlphabet, setParent, setTargetAlphabet, setTargetProcessingpublic SimpleTaggerSentence2TokenSequence()
SimpleTaggerSentence2TokenSequence instance.
By default we include tokens as features.public SimpleTaggerSentence2TokenSequence(boolean inc)
SimpleTaggerSentence2TokenSequence instance
which includes tokens as features iff the supplied argument is true.public Instance pipe(Instance carrier)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.