Skip to content

Commit

Permalink
Implement download.py script (SQuAD fetch) #9
Browse files Browse the repository at this point in the history
  • Loading branch information
fmikaelian committed Feb 14, 2019
1 parent d3d8397 commit d8493e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions reading-comprehension/pipeline/download.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import wget

squad_urls = [
'https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json',
'https://rajpurkar.github.io/SQuAD-explorer/dataset/dev-v1.1.json',
]

for squad_url in squad_urls:
wget.download(url=squad_url, out='data')

wget.download(url='https://github.com/allenai/bi-att-flow/blob/master/squad/evaluate-v1.1.py')
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ matplotlib
pytorch-pretrained-bert
beautifulsoup4
tqdm
wget
prettytable

0 comments on commit d8493e5

Please sign in to comment.