From b075c293d8246f87a4df3650f965eee2df91e7b6 Mon Sep 17 00:00:00 2001 From: hexastack Date: Thu, 28 Nov 2024 20:05:32 +0100 Subject: [PATCH] fix: remove typo --- nlu/models/slot_filler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nlu/models/slot_filler.py b/nlu/models/slot_filler.py index 20ae5df8..a1622b2d 100644 --- a/nlu/models/slot_filler.py +++ b/nlu/models/slot_filler.py @@ -187,7 +187,7 @@ class SlotFiller(tfbp.Model): data = helper.read_dataset_json_file('train.json') synonyms = data["entity_synonyms"] synonym_map = {} - for entry in data["entity_synonyms"]: + for entry in synonyms: value = entry["value"] for synonym in entry["synonyms"]: synonym_map[synonym] = value