sentimental_config.py 343 字节
Newer Older
Z
zhangjinchao01 已提交
1 2 3 4 5
from paddle.trainer_config_helpers import *

dictionary = dict()
...  #  read dictionary from outside

6 7 8 9 10 11 12 13 14
define_py_data_sources2(
    train_list='train.list',
    test_list=None,
    module='sentimental_provider',
    obj='process',
    # above codes same as mnist sample.
    args={  # pass to provider.
        'dictionary': dictionary
    })