mirror of
https://github.com/hexastack/hexabot
synced 2025-02-03 03:25:01 +00:00
fix: revert to default slot value
This commit is contained in:
parent
18705c6fb5
commit
05ecd71978
@ -266,6 +266,8 @@ class SlotFiller(tfbp.Model):
|
||||
#Post Processing
|
||||
synonym_map = self.get_synonym_map()
|
||||
final_slot_value = synonym_map.get(slot_value)
|
||||
if final_slot_value is None:
|
||||
final_slot_value = slot_value
|
||||
|
||||
# Calculate entity start and end indices
|
||||
entity = {
|
||||
|
Loading…
Reference in New Issue
Block a user