Skip to content
Snippets Groups Projects
Unverified Commit 91cc9ee7 authored by liangrz15's avatar liangrz15 Committed by GitHub
Browse files

fix the bug of multiwoz lexicalize (#178)

parent 3037c2c2
Branches
No related tags found
No related merge requests found
...@@ -54,8 +54,9 @@ def lexicalize_da(meta, entities, state, requestable, cur_domain=None): ...@@ -54,8 +54,9 @@ def lexicalize_da(meta, entities, state, requestable, cur_domain=None):
else: else:
continue continue
for pair in v: for pair in v:
if pair[0] in state[domain.lower()]['semi']: slot = REF_SYS_DA[domain][pair[0]]
pair[1] = state[domain.lower()]['semi'][pair[0]] if slot in state[domain.lower()]['semi']:
pair[1] = state[domain.lower()]['semi'][slot]
else: else:
pair[1] = 'none' pair[1] = 'none'
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment