org.allenai.nlpstack.parse.poly.polyparser
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