              st._sent[i].sent_end = False
          st.fast_forward()
  
      cdef int finalize_state(self, StateClass st) except -1:
          cdef int root_label = self.strings['ROOT']
          for i in range(st.length):
              if st._sent[i].head == 0 and st._sent[i].dep == 0:
                  st._sent[i].dep = root_label
  
      cdef int set_valid(self, bint* output, StateClass stcls) except -1:
 
</s> remove     elif _is_gold_root(gold, head) and _is_gold_root(gold, child):
 </s> add     elif USE_ROOT_ARC_SEGMENT and _is_gold_root(gold, head) and _is_gold_root(gold, child): </s> remove         # Label Shift moves with the best Right-Arc label, for non-monotonic
        # actions
        if best.move == SHIFT:
            score = MIN_SCORE
            for i in range(self.n_moves):
                if self.c[i].move == RIGHT and scores[i] > score:
                    best.label = self.c[i].label
                    score = scores[i]
 </s> add 
        cdef int root_label = self.strings['root']
              st._sent[i].sent_end = False
          st.fast_forward()
  
      cdef int finalize_state(self, StateClass st) except -1:
        cdef int root_label = self.strings['root']
          for i in range(st.length):
              if st._sent[i].head == 0 and st._sent[i].dep == 0:
                  st._sent[i].dep = root_label
  
      cdef int set_valid(self, bint* output, StateClass stcls) except -1:
keep keep keep keep replace keep keep keep keep keep
 * Add flag to toggle handling of multi-root inputs without the Break transition. Clear up now unused best_valid stuff. 
spacy/syntax/arc_eager.pyx