  from spacy.parts_of_speech import UNIV_POS_NAMES
      
  
  cdef class Morphology:
      def __init__(self, tag_map, fused_tokens, lemmatizer):
          self.lemmatizer = lemmatizer
          self.tag_map = tag_map
          self.n_tags = len(tag_map)
 
</s>
    @classmethod
    def from_dir(cls, data_dir, lemmatizer=None):
        tag_map = json.load(open(path.join(data_dir, 'tag_map.json')))
        if lemmatizer is None:
            lemmatizer = Lemmatizer.from_dir(data_dir)
        return cls(tag_map, {}, lemmatizer)

  from spacy.parts_of_speech import UNIV_POS_NAMES
      
  
  cdef class Morphology:
    @classmethod
    def from_dir(cls, data_dir, lemmatizer=None):
        tag_map = json.load(open(path.join(data_dir, 'tag_map.json')))
        if lemmatizer is None:
            lemmatizer = Lemmatizer.from_dir(data_dir)
        return cls(tag_map, {}, lemmatizer)

      def __init__(self, tag_map, fused_tokens, lemmatizer):
          self.lemmatizer = lemmatizer
          self.tag_map = tag_map
          self.n_tags = len(tag_map)
keep keep keep add keep keep keep keep
 * Tagger training now working. Still need to test load/save of model. Morphology still broken.
spacy/morphology.pyx