      def __init__(self, Vocab vocab, templates):
          self.mem = Pool()
          self.vocab = vocab
          
          cdef int n_tags = self.vocab.morphology.n_tags + 1
  
          self.model = Model(n_tags, templates)
          self.freqs = {TAG: defaultdict(int)}
          for tag in self.tag_names:
              self.freqs[TAG][self.vocab.strings[tag]] = 1
          self.freqs[TAG][0] = 1
  
 
</s> remove     def __init__(self, Vocab vocab, templates):
        self.mem = Pool()
 </s> add     @classmethod
    def from_dir(cls, data_dir, vocab):
        if path.exists(path.join(data_dir, 'templates.json')):
            templates = json.loads(open(path.join(data_dir, 'templates.json')))
        else:
            templates = cls.default_templates()
        model = Model(vocab.morphology.n_tags, templates, data_dir)
        return cls(vocab, model)

    def __init__(self, Vocab vocab, model): </s> remove     def make_lemmatizer(self):
        return None
 </s> add     @classmethod
    def blank(cls, vocab, templates):
        model = Model(vocab.morphology.n_tags, templates, model_loc=None)
        return cls(vocab, model) </s> remove         return tuple(sorted(self.vocab.morphology.tag_map.keys()))

    @classmethod
    def from_dir(cls, data_dir, vocab):
        if path.exists(path.join(data_dir, 'templates.json')):
            templates = json.loads(open(path.join(data_dir, 'templates.json')))
        else:
            templates = cls.default_templates()
        return cls(vocab, templates)
 </s> add         return self.vocab.morphology.tag_names </s> remove 
            self.vocab.morphology.assign_tag(&tokens.data[i], guess)
 </s> add             self.vocab.morphology.assign_tag(self.vocab.strings, &tokens.data[i], guess)
        # TODO: Move this to tag map
      def __init__(self, Vocab vocab, templates):
          self.mem = Pool()
          self.vocab = vocab
          
        # TODO: Move this to tag map
        # TODO: Move this to tag map
        # TODO: Move this to tag map
          self.freqs = {TAG: defaultdict(int)}
          for tag in self.tag_names:
              self.freqs[TAG][self.vocab.strings[tag]] = 1
          self.freqs[TAG][0] = 1
  
keep keep keep keep replace replace replace keep keep keep keep keep
 * Tagger training now working. Still need to test load/save of model. Morphology still broken. 
spacy/tagger.pyx