forked from pochih/RL-Chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
30 lines (24 loc) · 783 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# path to training data
training_data_path = 'data/conversations_lenmax22_formersents2_with_former'
# path to all_words
all_words_path = 'data/all_words.txt'
# training parameters
CHECKPOINT = True
train_model_path = 'model'
train_model_name = 'model-55'
start_epoch = 56
start_batch = 0
batch_size = 25
# for RL training
training_type = 'normal' # 'normal' for seq2seq training, 'pg' for policy gradient
reversed_model_path = 'Adam_encode22_decode22_reversed-maxlen22_lr0.0001_batch25_wordthres6'
reversed_model_name = 'model-63'
# data reader shuffle index list
load_list = False
index_list_file = 'data/shuffle_index_list'
cur_train_index = start_batch * batch_size
# word count threshold
WC_threshold = 20
reversed_WC_threshold = 6
# dialog simulation turns
MAX_TURNS = 10