mirror of https://github.com/explosion/spaCy.git
* Fix lemmatizer tests
This commit is contained in:
parent
2be3620333
commit
83d1a1e512
|
@ -1,6 +1,6 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from spacy.en.lemmatizer import Lemmatizer, read_index, read_exc
|
||||
from spacy.lemmatizer import Lemmatizer, read_index, read_exc
|
||||
from spacy.en import LOCAL_DATA_DIR
|
||||
from os import path
|
||||
|
||||
|
@ -23,7 +23,7 @@ def test_read_exc():
|
|||
|
||||
@pytest.fixture
|
||||
def lemmatizer():
|
||||
return Lemmatizer(path.join(LOCAL_DATA_DIR, 'wordnet'), 0, 0, 0)
|
||||
return Lemmatizer.from_dir(path.join(LOCAL_DATA_DIR))
|
||||
|
||||
|
||||
def test_noun_lemmas(lemmatizer):
|
||||
|
|
Loading…
Reference in New Issue