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 prefixes to treat as "key" prefixes
The PrefixFeature maps a token to the set of its prefixes that are contained in a set of "key" prefixes.
See the definition of TokenFeature (above) for more details about the interface.
the set of prefixes to treat as "key" prefixes