From 7b72c7926484905be37d10aa0bcfdada01f48d4e Mon Sep 17 00:00:00 2001 From: Yancey1989 Date: Fri, 24 Mar 2017 09:52:26 +0800 Subject: [PATCH] update --- python/paddle/v2/dataset/cifar.py | 2 +- python/paddle/v2/dataset/conll05.py | 2 +- python/paddle/v2/dataset/imdb.py | 2 +- python/paddle/v2/dataset/imikolov.py | 2 +- python/paddle/v2/dataset/mnist.py | 2 +- python/paddle/v2/dataset/movielens.py | 2 +- python/paddle/v2/dataset/sentiment.py | 4 ++-- python/paddle/v2/dataset/uci_housing.py | 2 +- python/paddle/v2/dataset/wmt14.py | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/python/paddle/v2/dataset/cifar.py b/python/paddle/v2/dataset/cifar.py index f8b97f7c1..c38caf7a8 100644 --- a/python/paddle/v2/dataset/cifar.py +++ b/python/paddle/v2/dataset/cifar.py @@ -77,6 +77,6 @@ def test10(): 'test_batch') -def download(): +def fetch_data(): paddle.v2.dataset.common.download(CIFAR10_URL, 'cifar', CIFAR10_MD5) paddle.v2.dataset.common.download(CIFAR100_URL, 'cifar', CIFAR100_MD5) diff --git a/python/paddle/v2/dataset/conll05.py b/python/paddle/v2/dataset/conll05.py index d39f81e41..dede47cbd 100644 --- a/python/paddle/v2/dataset/conll05.py +++ b/python/paddle/v2/dataset/conll05.py @@ -198,7 +198,7 @@ def test(): return reader_creator(reader, word_dict, verb_dict, label_dict) -def download(): +def fetch_data(): paddle.v2.dataset.common.download(WORDDICT_URL, 'conll05st', WORDDICT_MD5) paddle.v2.dataset.common.download(VERBDICT_URL, 'conll05st', VERBDICT_MD5) paddle.v2.dataset.common.download(TRGDICT_URL, 'conll05st', TRGDICT_MD5) diff --git a/python/paddle/v2/dataset/imdb.py b/python/paddle/v2/dataset/imdb.py index c4c6d738e..05e67f39d 100644 --- a/python/paddle/v2/dataset/imdb.py +++ b/python/paddle/v2/dataset/imdb.py @@ -125,5 +125,5 @@ def word_dict(): re.compile("aclImdb/((train)|(test))/((pos)|(neg))/.*\.txt$"), 150) -def download(): +def fetch_data(): paddle.v2.dataset.common.download(URL, 'imdb', MD5) diff --git a/python/paddle/v2/dataset/imikolov.py b/python/paddle/v2/dataset/imikolov.py index db83361d2..b89628cea 100644 --- a/python/paddle/v2/dataset/imikolov.py +++ b/python/paddle/v2/dataset/imikolov.py @@ -91,5 +91,5 @@ def test(word_idx, n): return reader_creator('./simple-examples/data/ptb.valid.txt', word_idx, n) -def download(): +def fetch_data(): paddle.v2.dataset.common.download(URL, "imikolov", MD5) diff --git a/python/paddle/v2/dataset/mnist.py b/python/paddle/v2/dataset/mnist.py index 7b536bfa0..8f1ce4df2 100644 --- a/python/paddle/v2/dataset/mnist.py +++ b/python/paddle/v2/dataset/mnist.py @@ -108,6 +108,6 @@ def test(): TEST_LABEL_MD5), 100) -def download(): +def fetch_data(): paddle.v2.dataset.common.download(TRAIN_IMAGE_URL, 'mnist', TRAIN_IMAGE_MD5) paddle.v2.dataset.common.download(TRAIN_LABEL_URL, 'mnist', TRAIN_LABEL_MD5) diff --git a/python/paddle/v2/dataset/movielens.py b/python/paddle/v2/dataset/movielens.py index ced1b4c27..cebf8a13e 100644 --- a/python/paddle/v2/dataset/movielens.py +++ b/python/paddle/v2/dataset/movielens.py @@ -205,7 +205,7 @@ def unittest(): print train_count, test_count -def download(): +def fetch_data(): paddle.v2.dataset.common.download(URL, "movielens", MD5) diff --git a/python/paddle/v2/dataset/sentiment.py b/python/paddle/v2/dataset/sentiment.py index b1d517fc6..3183288a7 100644 --- a/python/paddle/v2/dataset/sentiment.py +++ b/python/paddle/v2/dataset/sentiment.py @@ -26,7 +26,7 @@ from itertools import chain import nltk from nltk.corpus import movie_reviews -import common +import paddle.v2.dataset.common __all__ = ['train', 'test', 'get_word_dict'] NUM_TRAINING_INSTANCES = 1600 @@ -127,5 +127,5 @@ def test(): return reader_creator(data_set[NUM_TRAINING_INSTANCES:]) -def download(): +def fetch_data(): nltk.download('movie_reviews', download_dir=common.DATA_HOME) diff --git a/python/paddle/v2/dataset/uci_housing.py b/python/paddle/v2/dataset/uci_housing.py index 52bfc9e33..5066c0886 100644 --- a/python/paddle/v2/dataset/uci_housing.py +++ b/python/paddle/v2/dataset/uci_housing.py @@ -91,5 +91,5 @@ def test(): return reader -def download(): +def fetch_data(): paddle.v2.dataset.common.download(URL, 'uci_housing', MD5) diff --git a/python/paddle/v2/dataset/wmt14.py b/python/paddle/v2/dataset/wmt14.py index a5b4ea986..759c77ccf 100644 --- a/python/paddle/v2/dataset/wmt14.py +++ b/python/paddle/v2/dataset/wmt14.py @@ -105,5 +105,5 @@ def test(dict_size): 'test/test', dict_size) -def download(): +def fetch_data(): paddle.v2.dataset.common.download(URL_TRAIN, 'wmt14', MD5_TRAIN) -- GitLab