spaCy/spacy/en/__init__.py

13 lines
274 B
Python
Raw Normal View History

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