Upload files to "src"

This commit is contained in:
s495724 2024-05-06 14:52:18 +02:00
parent cd8da4bdcd
commit 06320b8682

View File

@ -2,6 +2,7 @@ from model.frame import Frame
from service.dialog_state_monitor import DialogStateMonitor from service.dialog_state_monitor import DialogStateMonitor
from service.dialog_policy import DialogPolicy from service.dialog_policy import DialogPolicy
from service.natural_languag_understanding import NaturalLanguageUnderstanding from service.natural_languag_understanding import NaturalLanguageUnderstanding
from service.natural_language_generation import NaturalLanguageGeneration
print("Natural language understanding, example:") print("Natural language understanding, example:")
naturalLanguageUnderstanding = NaturalLanguageUnderstanding() naturalLanguageUnderstanding = NaturalLanguageUnderstanding()
@ -18,3 +19,8 @@ print(monitor.get_last().act)
print("Dialog policy, next dialogue act:") print("Dialog policy, next dialogue act:")
dialog_policy = DialogPolicy(monitor.get_all()) dialog_policy = DialogPolicy(monitor.get_all())
print(dialog_policy.next_dialogue_act().act) print(dialog_policy.next_dialogue_act().act)
print("Natural Language Generation example:")
agent = NaturalLanguageGeneration("Michał")
response = agent.respond_to_name_query("Jak masz na imię?")
print(response)