From 6512a57909dbc339e92760947ff1bb576be74909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A8=80=E6=9E=AB?= Date: Thu, 30 Jun 2022 10:06:46 +0800 Subject: [PATCH] inform revise --- modelscope/preprocessors/space/dst_processors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modelscope/preprocessors/space/dst_processors.py b/modelscope/preprocessors/space/dst_processors.py index 6f9de25a..01a7e3c7 100644 --- a/modelscope/preprocessors/space/dst_processors.py +++ b/modelscope/preprocessors/space/dst_processors.py @@ -514,7 +514,7 @@ class multiwoz22Processor(DSTProcessor): sys_utt_tok_label_dict = {} usr_utt_tok_label_dict = {} value_dict = {} - inform_dict = {} + # inform_dict = {} inform_slot_dict = {} referral_dict = {} class_type_dict = {} @@ -582,7 +582,7 @@ class multiwoz22Processor(DSTProcessor): diag_seen_slots_value_dict, slot_last_occurrence=True) - inform_dict[slot] = informed_value + # inform_dict[slot] = informed_value # Generally don't use span prediction on sys utterance (but inform prediction instead). sys_utt_tok_label = [0 for _ in sys_utt_tok] @@ -1501,7 +1501,7 @@ if __name__ == '__main__': } }, {}] - example = processor.create_example(utter2, history_states2, set_type, + example = processor.create_example(utter3, history_states3, set_type, slot_list, {}, append_history, use_history_labels, swap_utterances, label_value_repetitions,