Poprawki do main.py

This commit is contained in:
s495727 2024-06-10 18:43:43 +02:00
parent 4620e53229
commit 809079cd56
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -5,6 +5,7 @@ import json
def normalize(value):
value = value.lower()
# TODO: pomyslec nad odmianą slów
return ' '.join(value.split())