mirror of https://github.com/explosion/spaCy.git
* Revert to wget in spacy.en.download
This commit is contained in:
parent
a8fc5f1285
commit
7d265a9c62
|
@ -3,8 +3,8 @@ from os import path
|
||||||
import os
|
import os
|
||||||
import tarfile
|
import tarfile
|
||||||
import shutil
|
import shutil
|
||||||
|
import wget
|
||||||
import plac
|
import plac
|
||||||
import urllib
|
|
||||||
|
|
||||||
# TODO: Read this from the same source as the setup
|
# TODO: Read this from the same source as the setup
|
||||||
VERSION = '0.8.5'
|
VERSION = '0.8.5'
|
||||||
|
@ -21,7 +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=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