From bb45f93fdd1eee7bd5019d1c38e324bf0de00b21 Mon Sep 17 00:00:00 2001 From: Christian Geishauser <45534723+ChrisGeishauser@users.noreply.github.com> Date: Thu, 30 Mar 2023 16:00:52 +0200 Subject: [PATCH] Update multiwoz_eval.py --- 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 62770bb4..75c4f219 100755 --- a/convlab/evaluator/multiwoz_eval.py +++ b/convlab/evaluator/multiwoz_eval.py @@ -162,7 +162,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 '' value = ref -- GitLab