mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
* Fix /tmp moving thing in download.py
This commit is contained in:
parent
ed1907b4df
commit
761a19113a
|
@ -7,7 +7,7 @@ import wget
|
||||||
import plac
|
import plac
|
||||||
|
|
||||||
# TODO: Read this from the same source as the setup
|
# TODO: Read this from the same source as the setup
|
||||||
VERSION = '0.7'
|
VERSION = '0.8'
|
||||||
|
|
||||||
AWS_STORE = 'http://s3-us-west-1.amazonaws.com/media.spacynlp.com'
|
AWS_STORE = 'http://s3-us-west-1.amazonaws.com/media.spacynlp.com'
|
||||||
|
|
||||||
|
@ -46,13 +46,10 @@ def install_dep_vectors(url, dest_dir):
|
||||||
def main(data_size='all'):
|
def main(data_size='all'):
|
||||||
if data_size == 'all':
|
if data_size == 'all':
|
||||||
data_url = ALL_DATA_DIR_URL
|
data_url = ALL_DATA_DIR_URL
|
||||||
elif data_size == 'speech':
|
|
||||||
data_url = SPEECH_DATA_DIR_URL
|
|
||||||
elif data_size == 'small':
|
elif data_size == 'small':
|
||||||
data_url = SM_DATA_DIR_URL
|
data_url = SM_DATA_DIR_URL
|
||||||
if path.exists(DEST_DIR):
|
if path.exists(DEST_DIR):
|
||||||
print("Moving existing dir %s to /tmp" % DEST_DIR)
|
shutil.rmtree(DEST_DIR)
|
||||||
shutil.move(DEST_DIR, '/tmp')
|
|
||||||
install_data(data_url, path.dirname(DEST_DIR))
|
install_data(data_url, path.dirname(DEST_DIR))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user