                          OUT: {'': True}
                      })
          for entity_type in kwargs.get('entity_types', []):
              for action in (BEGIN, IN, LAST, UNIT):
                  actions[action][entity_type] = True
          moves = ('M', 'B', 'I', 'L', 'U')
          for raw_text, sents in kwargs.get('gold_parses', []):
              for (ids, words, tags, heads, labels, biluo), _ in sents:
                  for i, ner_tag in enumerate(biluo):
                      if ner_tag != 'O' and ner_tag != '-':
 
</s> remove                         MISSING: {'': True},
                        BEGIN: {},
                        IN: {},
                        LAST: {},
                        UNIT: {},
                        OUT: {'': True}
 </s> add                         MISSING: [''],
                        BEGIN: [],
                        IN: [],
                        LAST: [],
                        UNIT: [],
                        OUT: [''] </s> remove                 actions[RIGHT][label] = True
 </s> add                 if (RIGHT, label) not in seen_actions:
                    actions[RIGHT].append(label) </s> remove                         for move_str in ('B', 'I', 'L', 'U'):
                            actions[moves.index(move_str)][label] = True
 </s> add                         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)
                actions[action].append(entity_type)
                          OUT: {'': True}
                      })
          for entity_type in kwargs.get('entity_types', []):
              for action in (BEGIN, IN, LAST, UNIT):
                actions[action].append(entity_type)
          moves = ('M', 'B', 'I', 'L', 'U')
          for raw_text, sents in kwargs.get('gold_parses', []):
              for (ids, words, tags, heads, labels, biluo), _ in sents:
                  for i, ner_tag in enumerate(biluo):
                      if ner_tag != 'O' and ner_tag != '-':
keep keep keep keep replace keep keep keep keep keep
 WIP on add_label bug during NER training

Currently when a new label is introduced to NER during training,
it causes the labels to be read in in an unexpected order. This
invalidates the model. 
spacy/syntax/ner.pyx