Skip to content
Snippets Groups Projects
Commit 6ccced5d authored by Christian's avatar Christian
Browse files

small bug fix caused when using T5 DST in the pipeline

parent 87768ad6
Branches
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ def lexicalize_da(meta, entities, state, requestable):
pair[1] = entities[domain][n][slot.capitalize()]
elif slot_old in entities[domain][n]:
pair[1] = entities[domain][n][slot_old]
elif slot in state[domain]:
elif state.get(domain) is not None and slot in state.get(domain):
pair[1] = state[domain][slot]
else:
pair[1] = 'not available'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment