* Clean up spacy.util

This commit is contained in:
Matthew Honnibal 2015-12-29 18:06:09 +01:00
parent aec130af56
commit a2dfdec85d
1 changed files with 1 additions and 12 deletions

View File

@ -63,19 +63,8 @@ class Package(object):
file_.close()
def get_package(name=None, data_path=None):
return MockPackage(data_path)
#if data_path is None:
# if os.environ.get('SPACY_DATA'):
# data_path = os.environ.get('SPACY_DATA')
# else:
# data_path = os.path.abspath(
# os.path.join(os.path.dirname(__file__), 'data'))
#sputnik = Sputnik('spacy', '0.100.0') # TODO: retrieve version
#pool = sputnik.pool(data_path)
#return pool.get(name or 'en_default')
return Package(data_path)
def normalize_slice(length, start, stop, step=None):