If the sentence has a token at position tokenIndex
, then this returns the
singleton sequence containing that token.
If the sentence has a token at position tokenIndex
, then this returns the
singleton sequence containing that token. Otherwise, this returns an empty sequence.
the sentence
the index of the desired token in the sentence
a singleton sequence containing the specified token (if it exists); otherwise an empty sequence
the set of suffixes to treat as "key" suffixes
The SuffixFeature maps a token to the set of its suffixes that are contained in a set of "key" suffixes.
See the definition of TokenFeature (above) for more details about the interface.
the set of suffixes to treat as "key" suffixes