alistairmcleay commited on
Commit
f29dd07
1 Parent(s): 2db6fc4

Fix bug in lexicalisation code

Browse files
scripts/UBAR_code/interaction/UBAR_interact.py CHANGED
@@ -128,7 +128,7 @@ class UbarSystemModel: # may inherit convlab or not, just like andy's
128
  for idx, belief_state_slot in enumerate(decoded_belief_states):
129
  if token in slots_to_db_keys_map.keys():
130
  if slots_to_db_keys_map[token] == belief_state_slot:
131
- token == decoded_belief_states[idx + 1]
132
 
133
  # Otherwise just leave the slot as it is as we have failed to fill it
134
 
 
128
  for idx, belief_state_slot in enumerate(decoded_belief_states):
129
  if token in slots_to_db_keys_map.keys():
130
  if slots_to_db_keys_map[token] == belief_state_slot:
131
+ token = decoded_belief_states[idx + 1]
132
 
133
  # Otherwise just leave the slot as it is as we have failed to fill it
134