                      if ner_tag != 'O' and ner_tag != '-':
                          if ner_tag.count('-') != 1:
                              raise ValueError(ner_tag)
                          _, label = ner_tag.split('-')
                          if label not in seen_entities:
                              seen_entities.add(label)
                              for move_str in ('B', 'I', 'L', 'U'):
                                  actions[moves.index(move_str)].append(label)
          return actions
  
      property action_types:
          def __get__(self):
              return (BEGIN, IN, LAST, UNIT, OUT)
 
</s> remove                 actions[action].append(entity_type)
 </s> add                 actions[action][entity_type] = 1 </s> remove             if entity_type in seen_entities:
                continue
            seen_entities.add(entity_type)
 </s> add  </s> remove                 pass
 </s> add                 if i in i2j_multi:
                    self.words[i] = words[i2j_multi[i]]
                    self.tags[i] = tags[i2j_multi[i]]
                    is_last = i2j_multi[i] != i2j_multi.get(i+1)
                    is_first = i2j_multi[i] != i2j_multi.get(i-1)
                    # Set next word in multi-token span as head, until last
                    if not is_last:
                        self.heads[i] = i+1
                        self.labels[i] = 'subtok'
                    else:
                        self.heads[i] = self.gold_to_cand[heads[i2j_multi[i]]]
                        self.labels[i] = deps[i2j_multi[i]]
                    # Now set NER...This is annoying because if we've split
                    # got an entity word split into two, we need to adjust the
                    # BILOU tags. We can't have BB or LL etc.
                    # Case 1: O -- easy.
                    ner_tag = entities[i2j_multi[i]]
                    if ner_tag == 'O':
                        self.ner[i] = 'O'
                    # Case 2: U. This has to become a B I* L sequence.
                    elif ner_tag.startswith('U-'):
                        if is_first:
                            self.ner[i] = ner_tag.replace('U-', 'B-', 1)
                        elif is_last:
                            self.ner[i] = ner_tag.replace('U-', 'L-', 1)
                        else:
                            self.ner[i] = ner_tag.replace('U-', 'I-', 1)
                    # Case 3: L. If not last, change to I.
                    elif ner_tag.startswith('L-'):
                        if is_last:
                            self.ner[i] = ner_tag
                        else:
                            self.ner[i] = ner_tag.replace('L-', 'I-', 1)
                    # Case 4: I. Stays correct
                    elif ner_tag.startswith('I-'):
                        self.ner[i] = ner_tag </s> remove         actions = kwargs.get('actions', OrderedDict((
            (MISSING, ['']),
            (BEGIN, []),
            (IN, []),
            (LAST, []),
            (UNIT, []),
            (OUT, [''])
        )))
        seen_entities = set()
 </s> add         actions = {
            MISSING: Counter(),
            BEGIN: Counter(),
            IN: Counter(),
            LAST: Counter(),
            UNIT: Counter(),
            OUT: Counter()
        }
        actions[OUT][''] = 1 </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
                        for action in (BEGIN, IN, LAST, UNIT):
                            actions[action][label] += 1
                      if ner_tag != 'O' and ner_tag != '-':
                          if ner_tag.count('-') != 1:
                              raise ValueError(ner_tag)
                          _, label = ner_tag.split('-')
                        for action in (BEGIN, IN, LAST, UNIT):
                            actions[action][label] += 1
                        for action in (BEGIN, IN, LAST, UNIT):
                            actions[action][label] += 1
                        for action in (BEGIN, IN, LAST, UNIT):
                            actions[action][label] += 1
                        for action in (BEGIN, IN, LAST, UNIT):
                            actions[action][label] += 1
          return actions
  
      property action_types:
          def __get__(self):
              return (BEGIN, IN, LAST, UNIT, OUT)
keep keep keep keep replace replace replace replace 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/ner.pyx