  from .moves cimport fill_moves, transition, best_accepted
  from .moves cimport set_accept_if_valid, set_accept_if_oracle
  from .moves import get_n_moves
  from ._state cimport State
  from ._state cimport init_state
  
  
  def setup_model_dir(tag_names, templates, model_dir):
 
</s> remove from ..context cimport fill_context
from ..context cimport N_FIELDS
 </s> add from .context cimport fill_context
from .context cimport N_FIELDS </s> remove         self.entity_types = cfg['entity_types']
 </s> add         self.tag_names = cfg['tag_names'] </s> remove     cdef weight_t score = scores[first_accept]
 </s> add     cdef weight_t score = scores[first_accept-1] </s> remove         for i, clas in enumerate(gold_classes):
            golds[i] = self.moves[clas - 1]
            assert golds[i].id == clas
 </s> add         for tok_i, clas in enumerate(gold_classes):
            golds[tok_i] = self._moves[clas]
            assert golds[tok_i].clas == clas, '%d vs %d' % (golds[tok_i].clas, clas)
from ._state cimport entity_is_open
  from .moves cimport fill_moves, transition, best_accepted
  from .moves cimport set_accept_if_valid, set_accept_if_oracle
from ._state cimport entity_is_open
  from .moves import get_n_moves
  from ._state cimport State
  from ._state cimport init_state
  
  
  def setup_model_dir(tag_names, templates, model_dir):
keep add keep keep keep keep keep keep
 * Fixed greedy NER parsing. With static oracle, replicates accuracy from tagger. 
spacy/ner/greedy_parser.pyx