mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
* 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
Block a user