          loss = 0
          words = [w.orth_ for w in tokens]
          while not stcls.is_final():
              assert stcls._s_i >= 0
              fill_context(context, stcls)
              scores = self.model.score(context)
              guess = self.moves.best_valid(scores, stcls)
 
</s> remove             #print stcls.print_state(words)
 </s> add  </s> remove             best = self.moves.best_gold(scores, stcls, gold)
 </s> add             try:
                best = self.moves.best_gold(scores, stcls, gold)
            except:
                history.append((self.moves.move_name(guess.move, guess.label), '!', stcls.print_state(words)))
                for i, word in enumerate(words):
                    print gold.orig_annot[i]
                print '\n'.join('\t'.join(s) for s in history)
                print words[gold.c.heads[stcls.S(0)]]
                print words[gold.c.heads[stcls.B(0)]]
                print push_cost(stcls, &gold.c, stcls.B(0))
                print arc_cost(stcls, &gold.c, stcls.S(0), stcls.B(0))
                self.moves.set_valid(self.moves._is_valid, stcls)
                raise
        history = []
          loss = 0
          words = [w.orth_ for w in tokens]
        history = []
          while not stcls.is_final():
              assert stcls._s_i >= 0
              fill_context(context, stcls)
              scores = self.model.score(context)
              guess = self.moves.best_valid(scores, stcls)
keep add keep keep keep keep keep
 * Fixes to unshift/fast-forward strategy. Getting 91.55 greedy on NW dev, gold preproc 
spacy/syntax/parser.pyx