From 476dc510ea2246d69c1d7e52057d7d3b90dc100f Mon Sep 17 00:00:00 2001 From: hexastack Date: Thu, 28 Nov 2024 20:17:33 +0100 Subject: [PATCH] fix: uncase input text --- 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 b83df0fc..c18a4840 100644 --- a/nlu/models/slot_filler.py +++ b/nlu/models/slot_filler.py @@ -172,7 +172,7 @@ class SlotFiller(tfbp.Model): def predict(self): while True: text = input("Provide text: ") - info = self.get_prediction(text) + info = self.get_prediction(text.lower()) print(self.summary()) print("Text : " + text)