From efdaeceb95e2f06b4998a16656b8c3788111a19a Mon Sep 17 00:00:00 2001 From: Hsien-Chin Lin <linh@hhu.de> Date: Fri, 14 Apr 2023 16:56:19 +0200 Subject: [PATCH] fix conflict --- convlab/evaluator/multiwoz_eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convlab/evaluator/multiwoz_eval.py b/convlab/evaluator/multiwoz_eval.py index 34984942..390ad3ce 100755 --- a/convlab/evaluator/multiwoz_eval.py +++ b/convlab/evaluator/multiwoz_eval.py @@ -164,7 +164,7 @@ class MultiWozEvaluator(Evaluator): new_acts = list() for intent, domain, slot, value in da_turn: - if intent.lower() == 'book': + if intent.lower() == 'book' and not value: ref = [_value for _intent, _domain, _slot, _value in da_turn if _domain == domain and _intent.lower() == 'inform' and _slot.lower() == 'ref'] ref = ref[0] if ref else '' -- GitLab