mirror of https://github.com/explosion/spaCy.git
* 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
|
||||
|
||||
LOCAL_DATA_DIR = path.join(path.dirname(__file__), 'data')
|
||||
|
||||
class English(Language):
|
||||
@classmethod
|
||||
def default_data_dir(cls):
|
||||
return path.join(path.dirname(__file__), 'data')
|
||||
return LOCAL_DATA_DIR
|
||||
|
|
Loading…
Reference in New Issue