From 631c843ed179ff6aafaad93d1263468d7fc87b2f Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 12 Sep 2015 06:03:44 +0200 Subject: [PATCH] * Don't look for index.adv in le,matizer --- spacy/lemmatizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/lemmatizer.py b/spacy/lemmatizer.py index 8d0046ea1..e2626b4d3 100644 --- a/spacy/lemmatizer.py +++ b/spacy/lemmatizer.py @@ -15,7 +15,7 @@ class Lemmatizer(object): def from_dir(cls, data_dir): index = {} exc = {} - for pos in ['adj', 'adv', 'noun', 'verb']: + for pos in ['adj', 'noun', 'verb']: index[pos] = read_index(path.join(data_dir, 'wordnet', 'index.%s' % pos)) exc[pos] = read_exc(path.join(data_dir, 'wordnet', '%s.exc' % pos)) rules = json.load(open(path.join(data_dir, 'vocab', 'lemma_rules.json')))