Skip to content

Commit

Permalink
dwr fix for crawl - no bytes check
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejonasson committed Feb 9, 2018
1 parent 023c5ea commit a1fd765
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions question_answering/preprocessing/dwr.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@

if not os.path.exists(prefix):
os.makedirs(prefix)

glove_zip = maybe_download(glove_base_url, glove_filename, prefix, 862182613)
if args.glove_source == 'wiki':
glove_zip = maybe_download(glove_base_url, glove_filename, prefix, 862182613)
else:
glove_zip = maybe_download(glove_base_url, glove_filename, prefix)
glove_zip_ref = zipfile.ZipFile(os.path.join(prefix, glove_filename), 'r')

glove_zip_ref.extractall(prefix)
Expand Down

0 comments on commit a1fd765

Please sign in to comment.