mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
fix tests (use english model)
This commit is contained in:
parent
f2d011c034
commit
a473d6e937
|
@ -24,7 +24,7 @@ from spacy.serialize.bits import BitArray
|
||||||
def vocab():
|
def vocab():
|
||||||
data_dir = os.environ.get('SPACY_DATA')
|
data_dir = os.environ.get('SPACY_DATA')
|
||||||
if data_dir is None:
|
if data_dir is None:
|
||||||
package = util.get_package_by_name()
|
package = util.get_package_by_name('en')
|
||||||
else:
|
else:
|
||||||
package = util.get_package(data_dir)
|
package = util.get_package(data_dir)
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ import pytest
|
||||||
def package():
|
def package():
|
||||||
data_dir = os.environ.get('SPACY_DATA')
|
data_dir = os.environ.get('SPACY_DATA')
|
||||||
if data_dir is None:
|
if data_dir is None:
|
||||||
return util.get_package_by_name()
|
return util.get_package_by_name('en')
|
||||||
else:
|
else:
|
||||||
return util.get_package(data_dir)
|
return util.get_package(data_dir)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user