      import ujson as json
  except ImportError:
      import json
  
  import nonproj
  
  
  def tags_to_entities(tags):
      entities = []
      start = None
 
</s> remove     def _get_smallest_nonproj_arc(self, heads):
 </s> add     @classmethod
    def _get_smallest_nonproj_arc(cls, heads): </s> remove             for idx in queue:
                if labels[idx] == headlabel:
                    return idx
                next_queue.extend(spans.get(idx,[]))
 </s> add             for qtoken in queue:
                for child in qtoken.children:
                    if child == token:
                        continue
                    if child.dep_ == headlabel:
                        return child
                    next_queue.append(child) </s> remove         if not spans:
            spans = self._make_span_index(heads)
        queue = spans.get(rootid,[])
        queue.remove(tokenid) # don't search in the subtree of the nonproj arc
 </s> add         queue = [token.head]
from .syntax import nonproj
      import ujson as json
  except ImportError:
      import json
  
from .syntax import nonproj
  
  
  def tags_to_entities(tags):
      entities = []
      start = None
keep keep keep keep replace keep keep keep keep keep
 integrated pseudo-projective parsing into parser

- nonproj.pyx holds a class PseudoProjectivity which currently holds
  all functionality to implement Nivre & Nilsson 2005's pseudo-projective
  parsing using the HEAD decoration scheme
- changed lefts/rights in Token to account for possible non-projective
  structures 
spacy/gold.pyx