Revision 8b997adc6e64d841697bea7612f2bfeb6159a6df authored by Kenichi Maehashi on 29 June 2022, 07:36:31 UTC, committed by Kenichi Maehashi on 29 June 2022, 07:41:25 UTC
1 parent e9da142
download.py
#!/usr/bin/env python
import os
import os.path
from six.moves.urllib import request
import zipfile
request.urlretrieve(
'https://nlp.stanford.edu/sentiment/trainDevTestTrees_PTB.zip',
'trainDevTestTrees_PTB.zip')
zf = zipfile.ZipFile('trainDevTestTrees_PTB.zip')
for name in zf.namelist():
(dirname, filename) = os.path.split(name)
if not filename == '':
zf.extract(name, '.')
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...