  
  
  def lemmatize(string, index, exceptions, rules):
      string = string.lower()
      forms = []
      forms.extend(exceptions.get(string, []))
      oov_forms = []
      if not forms:
          for old, new in rules:
 
</s> remove         with loc.open('r', encoding='utf8') as file_:
            docs = ujson.load(file_)
        if limit is not None:
            docs = docs[:limit]
        for doc in docs:
 </s> add         for doc in _json_iterate(loc): </s> remove             return list(set([string.lower()]))
 </s> add             return [string.lower()] </s> remove def is_stop(string, stops=set()): return string in stops
 </s> add def is_stop(string, stops=set()): return string.lower() in stops </s> remove         max_length = max(5, min(50, min([len(doc) for doc in whole_docs])))
 </s> add         max_length = max(min_length, min(max_length, min([len(doc) for doc in whole_docs])))
    orig = string
  
  
  def lemmatize(string, index, exceptions, rules):
    orig = string
      string = string.lower()
      forms = []
      forms.extend(exceptions.get(string, []))
      oov_forms = []
      if not forms:
          for old, new in rules:
keep keep add keep keep keep keep keep keep
 Revert "Merge branch 'develop' of https://github.com/explosion/spaCy into develop"

This reverts commit c9ba3d3c2dc7067cf8bd55f878cec45a8c6d73d4, reversing
changes made to 92c26a35d425d4e8ca1b805ea776ea10f5ded3df. 
spacy/lemmatizer.py