* Revert to wget in spacy.en.download

This commit is contained in:
Matthew Honnibal 2015-06-08 00:48:56 +02:00
parent a8fc5f1285
commit 7d265a9c62
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ from os import path
import os
import tarfile
import shutil
import wget
import plac
import urllib
# TODO: Read this from the same source as the setup
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')
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]