* Specify LOCAL_DATA_DIR global in spacy.en.__init__.py

This commit is contained in:
Matthew Honnibal 2015-08-26 19:15:07 +02:00
parent c2d8edd0bd
commit c4d8754385
1 changed files with 2 additions and 1 deletions

View File

@ -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