parent
89d300191e
commit
349319e5ed
@ -1,6 +1,12 @@
|
|||||||
import paddle.v2.dataset.common
|
import paddle.v2.dataset.common
|
||||||
|
import tarfile
|
||||||
|
|
||||||
URL = 'http://ai.stanford.edu/%7Eamaas/data/sentiment/aclImdb_v1.tar.gz'
|
URL = 'http://ai.stanford.edu/%7Eamaas/data/sentiment/aclImdb_v1.tar.gz'
|
||||||
MD5 = '7c2ac02c03563afcf9b574c7e56c153a'
|
MD5 = '7c2ac02c03563afcf9b574c7e56c153a'
|
||||||
|
|
||||||
paddle.v2.dataset.common.download
|
tarf = tarfile.open(paddle.v2.dataset.common.download(URL, 'imdb', MD5))
|
||||||
|
|
||||||
|
tf = tarf.next()
|
||||||
|
while tf != None:
|
||||||
|
print tf.name
|
||||||
|
tf = tarf.next()
|
||||||
|
Loading…
Reference in new issue