feat: one level of post annotators
"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
"tags": ["selector"]
},
- "post_annotators_1": {
+ "post_annotators": {
"sentseg": {
"connector": "connectors.sentseg",
"dialog_formatter": "state_formatters.dp_formatters:last_bot_utt_dialog",
"dialog_formatter": "state_formatters.dp_formatters:last_utt_dialog",
"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
"state_manager_method": "add_annotation"
- }
},
- "post_annotators_2": {
"ner": {
"connector": "connectors.ner",
"dialog_formatter": "state_formatters.dp_formatters:ner_formatter_last_bot_dialog",
"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
- "previous_services": ["post_annotators_1"],
- "required_previous_services": ["bot_annotator_selector", "post_annotators_1.sentseg"],
+ "required_previous_services": ["bot_annotator_selector", "post_annotators.sentseg"],
"state_manager_method": "add_annotation_prev_bot_utt"
- }
},
- "post_annotators_3": {
"sentrewrite": {
"connector": "connectors.sentrewrite",
"dialog_formatter": "state_formatters.dp_formatters:sent_rewrite_formatter_w_o_last_dialog",
"response_formatter": "state_formatters.dp_formatters:simple_formatter_service",
- "previous_services": ["post_annotators_2"],
- "required_previous_services": ["bot_annotator_selector", "post_annotators_2.ner"],
+ "required_previous_services": ["bot_annotator_selector", "post_annotators.ner"],
"state_manager_method": "add_annotation_prev_bot_utt"
}
},
