In [0]:
"""
We use following lines because we are running on Google Colab
If you are running notebook on a local computer, you don't need this cell
"""
from google.colab import drive
drive.mount('/content/gdrive')
import os
os.chdir('/content/gdrive/My Drive/finch/tensorflow1/text_matching/snli/data')
In [0]:
!pip install wget
Requirement already satisfied: wget in /usr/local/lib/python3.6/dist-packages (3.2)
In [0]:
import os
import zipfile
import wget
In [0]:
f_path='../data/snli_1.0.zip'
wget.download('https://nlp.stanford.edu/projects/snli/snli_1.0.zip',
              out = f_path)
z = zipfile.ZipFile(f_path, 'r')
z.extractall(os.path.dirname(f_path))
z = z.close()
os.remove(f_path)
In [0]:
os.chdir('/content/gdrive/My Drive/finch/tensorflow1/text_matching/snli/data/snli_1.0')
!ls
'Icon'$'\r'   snli_1.0_dev.jsonl   snli_1.0_test.jsonl	 snli_1.0_train.jsonl
 README.txt   snli_1.0_dev.txt	   snli_1.0_test.txt	 snli_1.0_train.txt