class_docstr: This class defines a set of transition which is applied to a configuration to get another configuration
  Note that for different parsing algorithm, the transition is different.
docstr: Note that the algorithm for shift is the SAME for arc-standard and arc-eager
  
  :param configuration: is the current configuration
  :return: A new configuration or -1 if the pre-condition is not satisfied
docstr_tok: ["Note","that","the","algorithm","for","shift","is","the","SAME","for","arc-standard","and","arc-eager",":","param","configuration",":","is","the","current","configuration",":","return",":","A","new","configuration","or","-1","if","the","pre-condition","is","not","satisfied"]
code: def shift(self, conf):
      """
      Note that the algorithm for shift is the SAME for arc-standard and arc-eager
  
      :param configuration: is the current configuration
      :return: A new configuration or -1 if the pre-condition is not satisfied
      """
      if len(conf.buffer) <= 0:
          return -1
      idx_wi = conf.buffer.pop(0)
      conf.stack.append(idx_wi)
  
imports: import pickle
  import tempfile
  from copy import deepcopy
  from operator import itemgetter
  from os import remove
  from nltk.parse import DependencyEvaluator, DependencyGraph, ParserI
label_desc: Use image node_id 5 for calling the Transition obj's underlying member method code with example usage: obj.shift(conf) and returns: unknown