mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-28 12:53:41 +03:00
* Specify LOCAL_DATA_DIR global in spacy.en.__init__.py
This commit is contained in:
parent
c2d8edd0bd
commit
c4d8754385
|
@ -4,8 +4,9 @@ from os import path
|
||||||
|
|
||||||
from ..language import Language
|
from ..language import Language
|
||||||
|
|
||||||
|
LOCAL_DATA_DIR = path.join(path.dirname(__file__), 'data')
|
||||||
|
|
||||||
class English(Language):
|
class English(Language):
|
||||||
@classmethod
|
@classmethod
|
||||||
def default_data_dir(cls):
|
def default_data_dir(cls):
|
||||||
return path.join(path.dirname(__file__), 'data')
|
return LOCAL_DATA_DIR
|
||||||
|
|
Loading…
Reference in New Issue
Block a user