mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
* Upd download script
This commit is contained in:
parent
6259947d30
commit
a20fdbd8ee
|
@ -1,3 +1,4 @@
|
|||
from __future__ import print_function
|
||||
from os import path
|
||||
import os
|
||||
import tarfile
|
||||
|
@ -44,7 +45,9 @@ def main(data_size='all'):
|
|||
data_url = ALL_DATA_DIR_URL
|
||||
elif data_size == 'small':
|
||||
data_url = SM_DATA_DIR_URL
|
||||
shutil.move(DEST_DIR, '/tmp')
|
||||
if path.exists(DEST_DIR):
|
||||
print("Moving existing dir %s to /tmp" % DEST_DIR)
|
||||
shutil.move(DEST_DIR, '/tmp')
|
||||
install_data(data_url, path.dirname(DEST_DIR))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user