fix: revert to default slot value

This commit is contained in:
hexastack 2024-11-28 20:13:47 +01:00
parent 18705c6fb5
commit 05ecd71978

View File

@ -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 = {