From 1515862861cf4c5ab716f1642d969afe839c0520 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 8 Jun 2015 00:08:05 +0200 Subject: [PATCH] * Fix download.py --- spacy/en/download.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spacy/en/download.py b/spacy/en/download.py index d2d0c2072..03a01564a 100644 --- a/spacy/en/download.py +++ b/spacy/en/download.py @@ -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') def download_file(url, out): - urllib.urlretrieve(url, filename=out) - wget.download(url, out=out) + urllib.urlretrieve(url, filename=path.join(out, url.rsplit('/', 1)[1])) return url.rsplit('/', 1)[1]