  from os import path
  import codecs
  
  
  class Lemmatizer(object):
      @classmethod
      def from_dir(cls, data_dir):
          index = {}
 
</s> remove     def __init__(self, wn_dict_dir, noun_id, verb_id, adj_id):
        self.noun_id = noun_id
        self.verb_id = verb_id
        self.adj_id = adj_id
        self.index = {}
        self.exc = {}
 </s> add     @classmethod
    def from_dir(cls, data_dir):
        index = {}
        exc = {}
try:
    import ujson as json
except ImportError:
    import json

from .parts_of_speech import NOUN, VERB, ADJ

  from os import path
  import codecs
  
try:
    import ujson as json
except ImportError:
    import json

from .parts_of_speech import NOUN, VERB, ADJ

  
  class Lemmatizer(object):
      @classmethod
      def from_dir(cls, data_dir):
          index = {}
keep keep add keep keep keep keep keep
 * Tagger training now working. Still need to test load/save of model. Morphology still broken. 
spacy/lemmatizer.py