mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 10:56:31 +03:00
* Fix download.py
This commit is contained in:
parent
7e9e8f654a
commit
1515862861
|
@ -21,8 +21,7 @@ SPEECH_DATA_DIR_URL = '%s/en_data_speech-%s.tgz' % (AWS_STORE, VERSION)
|
||||||
DEST_DIR = path.join(path.dirname(__file__), 'data')
|
DEST_DIR = path.join(path.dirname(__file__), 'data')
|
||||||
|
|
||||||
def download_file(url, out):
|
def download_file(url, out):
|
||||||
urllib.urlretrieve(url, filename=out)
|
urllib.urlretrieve(url, filename=path.join(out, url.rsplit('/', 1)[1]))
|
||||||
wget.download(url, out=out)
|
|
||||||
return url.rsplit('/', 1)[1]
|
return url.rsplit('/', 1)[1]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user