提交 349319e5 编写于 作者: Y Yi Wang

Add imdb_test.py

上级 89d30019
import paddle.v2.dataset.common
import tarfile
URL = 'http://ai.stanford.edu/%7Eamaas/data/sentiment/aclImdb_v1.tar.gz'
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()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册