nltk.SteppingShiftReduceParser.shift

SteppingShiftReduceParser.shift()[source]

Move a token from the beginning of the remaining text to the end of the stack. If there are no more tokens in the remaining text, then do nothing.

Returns:True if the shift operation was successful.
Return type:bool