diff --git a/nlu/models/slot_filler.py b/nlu/models/slot_filler.py index 5789ee56..917fa883 100644 --- a/nlu/models/slot_filler.py +++ b/nlu/models/slot_filler.py @@ -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 = {