          if 'labels' in cfg and 'actions' not in cfg:
              cfg['actions'] = cfg.pop('labels')
          self = cls(vocab, TransitionSystem=TransitionSystem, model=None, **cfg)
          if (path / 'model').exists():
              self.model.load(str(path / 'model'))
          elif require:
              raise IOError(
                  "Required file %s/model not found when loading" % str(path))
 
</s> remove         for action in self.moves.action_types:
            self.moves.add_action(action, label)
            if 'actions' in self.cfg:
                self.cfg['actions'].setdefault(action,
                                        {}).setdefault(label, True)
 </s> add         Parser.add_label(self, label) </s> remove         for action in self.moves.action_types:
            self.moves.add_action(action, label)
            if 'actions' in self.cfg:
                self.cfg['actions'].setdefault(action,
                                        {}).setdefault(label, True)
 </s> add         Parser.add_label(self, label) </s> remove         for action in self.moves.action_types:
            self.moves.add_action(action, label)
            if 'actions' in self.cfg:
                self.cfg['actions'].setdefault(action,
                                        {}).setdefault(label, True)
 </s> add         Parser.add_label(self, label) </s> remove         for action in self.moves.action_types:
            self.moves.add_action(action, label)
            if 'actions' in self.cfg:
                self.cfg['actions'].setdefault(action,
                                        {}).setdefault(label, True)
 </s> add         Parser.add_label(self, label)
        # TODO: remove this shim when we don't have to support older data
        for action_name, labels in dict(cfg['actions']).items():
            # We need this to be sorted
            if isinstance(labels, dict):
                labels = list(sorted(labels.keys()))
            cfg['actions'][action_name] = labels
        print(cfg['actions'])
          if 'labels' in cfg and 'actions' not in cfg:
              cfg['actions'] = cfg.pop('labels')
        # TODO: remove this shim when we don't have to support older data
        for action_name, labels in dict(cfg['actions']).items():
            # We need this to be sorted
            if isinstance(labels, dict):
                labels = list(sorted(labels.keys()))
            cfg['actions'][action_name] = labels
        print(cfg['actions'])
          self = cls(vocab, TransitionSystem=TransitionSystem, model=None, **cfg)
          if (path / 'model').exists():
              self.model.load(str(path / 'model'))
          elif require:
              raise IOError(
                  "Required file %s/model not found when loading" % str(path))
keep add keep 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/parser.pyx