spaCy/spacy/en/__init__.py

13 lines
274 B
Python
Raw Normal View History

2015-08-25 13:37:30 +00:00
from __future__ import unicode_literals, print_function
2015-07-07 12:00:07 +00:00
2015-08-25 13:37:30 +00:00
from os import path
2014-12-24 06:42:00 +00:00
2015-08-25 13:37:30 +00:00
from ..language import Language
LOCAL_DATA_DIR = path.join(path.dirname(__file__), 'data')
2015-08-25 13:37:30 +00:00
class English(Language):
@classmethod
def default_data_dir(cls):
return LOCAL_DATA_DIR