Poprawki do main.py
This commit is contained in:
parent
4620e53229
commit
809079cd56
@ -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
|
||||
|
@ -5,6 +5,7 @@ import json
|
||||
|
||||
def normalize(value):
|
||||
value = value.lower()
|
||||
# TODO: pomyslec nad odmianą slów
|
||||
return ' '.join(value.split())
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user