imdb_test.py 311 字节
Newer Older
1
import paddle.v2.dataset.common
Y
Yi Wang 已提交
2
import tarfile
3 4 5 6

URL = 'http://ai.stanford.edu/%7Eamaas/data/sentiment/aclImdb_v1.tar.gz'
MD5 = '7c2ac02c03563afcf9b574c7e56c153a'

Y
Yi Wang 已提交
7 8 9 10 11 12
tarf = tarfile.open(paddle.v2.dataset.common.download(URL, 'imdb', MD5))

tf = tarf.next()
while tf != None:
    print tf.name
    tf = tarf.next()