File tree Expand file tree Collapse file tree
tests/training/test_data/json_corpus Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ Training with CSV or TSV formatted data
139139.. autoclass :: chatterbot.trainers.CsvFileTrainer
140140 :members: train
141141
142+ .. autoattribute :: chatterbot.trainers.CsvFileTrainer.DEFAULT_STATEMENT_TO_HEADER_MAPPING
143+
142144
143145Example CSV data format:
144146
@@ -169,6 +171,8 @@ Training with JSON formatted data
169171.. autoclass :: chatterbot.trainers.JsonFileTrainer
170172 :members: train
171173
174+ .. autoattribute :: chatterbot.trainers.JsonFileTrainer.DEFAULT_STATEMENT_TO_KEY_MAPPING
175+
172176
173177Example JSON data format:
174178
Original file line number Diff line number Diff line change 44 "text" : " Hello" ,
55 "in_response_to" : null ,
66 "persona" : " user 1" ,
7- "conversation" : " test"
7+ "conversation" : " test" ,
8+ "tags" : [
9+ " greeting"
10+ ]
811 },
912 {
1013 "text" : " Is anyone there?" ,
1114 "in_response_to" : " Hello" ,
1215 "persona" : " user 1" ,
13- "conversation" : " test"
16+ "conversation" : " test" ,
17+ "tags" : [
18+ " question"
19+ ]
1420 },
1521 {
1622 "text" : " Yes" ,
You can’t perform that action at this time.
0 commit comments