* Don't look for index.adv in le,matizer

This commit is contained in:
Matthew Honnibal 2015-09-12 06:03:44 +02:00
parent 1ae55cb63a
commit 631c843ed1
1 changed files with 1 additions and 1 deletions

View File

@ -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')))