You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Paddle/python/paddle/v2/dataset/tests/imdb_test.py

13 lines
311 B

import paddle.v2.dataset.common
import tarfile
URL = 'http://ai.stanford.edu/%7Eamaas/data/sentiment/aclImdb_v1.tar.gz'
MD5 = '7c2ac02c03563afcf9b574c7e56c153a'
tarf = tarfile.open(paddle.v2.dataset.common.download(URL, 'imdb', MD5))
tf = tarf.next()
while tf != None:
print tf.name
tf = tarf.next()