From 809079cd560ec77076b3cc28db43ee501591c40c Mon Sep 17 00:00:00 2001 From: kb Date: Mon, 10 Jun 2024 18:43:43 +0200 Subject: [PATCH] Poprawki do main.py --- src/main.py | 2 +- src/service/dialog_state_monitor.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index c92b3f3..f0954ac 100644 --- a/src/main.py +++ b/src/main.py @@ -5,7 +5,7 @@ from service.natural_language_generation import NaturalLanguageGeneration, parse from service.templates import templates # initialize classes -nlu = NaturalLanguageUnderstanding() # NLU +nlu = NaturalLanguageUnderstanding(use_mocks=False) # NLU monitor = DialogStateMonitor() # DSM dialog_policy = DialogPolicy() # DP language_generation = NaturalLanguageGeneration(templates) # NLG diff --git a/src/service/dialog_state_monitor.py b/src/service/dialog_state_monitor.py index 629e6de..1057d1d 100644 --- a/src/service/dialog_state_monitor.py +++ b/src/service/dialog_state_monitor.py @@ -5,6 +5,7 @@ import json def normalize(value): value = value.lower() + # TODO: pomyslec nad odmianą slów return ' '.join(value.split())