inform revise

This commit is contained in:
言枫
2022-06-30 10:06:46 +08:00
parent 4cfc4b43a0
commit 6512a57909

View File

@@ -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,