              doc.c[i].head = new_head.i - i
              doc.c[i].dep = doc.vocab.strings.add(new_label)
      return doc
  
  
  def _decorate(heads, proj_heads, labels):
      # uses decoration scheme HEAD from Nivre & Nilsson 2005
 
</s> remove             doc[i].head = new_head
 </s> add             doc.c[i].head = new_head.i - i </s> remove         assert (end - start) < self.max_length
 </s> add  </s> remove     return label.find(DELIMITER) != -1
 </s> add     return DELIMITER in label

def count_decorated_labels(gold_tuples):
    freqs = {}
    for raw_text, sents in gold_tuples:
        for (ids, words, tags, heads, labels, iob), ctnts in sents:
            proj_heads, deco_labels = projectivize(heads, labels)
            # set the label to ROOT for each root dependent
            deco_labels = ['ROOT' if head == i else deco_labels[i]
                           for i, head in enumerate(proj_heads)]
            # count label frequencies
            for label in deco_labels:
                if is_decorated(label):
                    freqs[label] = freqs.get(label, 0) + 1
    return freqs </s> remove         for i in range(self.max_length):
            self._phrase_key[i] = 0
 </s> add         cdef Pool mem = Pool()
        phrase_key = <attr_t*>mem.alloc(end-start, sizeof(attr_t)) </s> remove         i = 0
        for loc in self.dev_locs:
            gold_tuples = read_json_file(loc)
            for item in gold_tuples:
                yield item
                i += len(item[1])
                if self.limit and i >= self.limit:
                    break
 </s> add         locs = (self.tmp_dir / 'dev').iterdir()
        yield from self.read_tuples(locs, limit=self.limit)
   
    @property
    def train_tuples(self):
        locs = (self.tmp_dir / 'train').iterdir()
        yield from self.read_tuples(locs, limit=self.limit)
    set_children_from_heads(doc.c, doc.length)
              doc.c[i].head = new_head.i - i
              doc.c[i].dep = doc.vocab.strings.add(new_label)
    set_children_from_heads(doc.c, doc.length)
      return doc
  
  
  def _decorate(heads, proj_heads, labels):
      # uses decoration scheme HEAD from Nivre & Nilsson 2005
keep add keep keep keep keep keep
 Revert "Merge branch 'develop' of https://github.com/explosion/spaCy into develop"

This reverts commit c9ba3d3c2dc7067cf8bd55f878cec45a8c6d73d4, reversing
changes made to 92c26a35d425d4e8ca1b805ea776ea10f5ded3df. 
spacy/syntax/nonproj.pyx