Skip to content
Snippets Groups Projects
Unverified Commit bb45f93f authored by Christian Geishauser's avatar Christian Geishauser Committed by GitHub
Browse files

Update multiwoz_eval.py

parent f9fd8139
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ class MultiWozEvaluator(Evaluator): ...@@ -162,7 +162,7 @@ class MultiWozEvaluator(Evaluator):
new_acts = list() new_acts = list()
for intent, domain, slot, value in da_turn: 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 = [_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 '' ref = ref[0] if ref else ''
value = ref value = ref
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment