From 06320b8682a16a1615cdcfd0e120cf92baa1c08c Mon Sep 17 00:00:00 2001 From: s495724 Date: Mon, 6 May 2024 14:52:18 +0200 Subject: [PATCH] Upload files to "src" --- src/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.py b/src/main.py index 8150f48..521dfac 100644 --- a/src/main.py +++ b/src/main.py @@ -2,6 +2,7 @@ from model.frame import Frame from service.dialog_state_monitor import DialogStateMonitor from service.dialog_policy import DialogPolicy from service.natural_languag_understanding import NaturalLanguageUnderstanding +from service.natural_language_generation import NaturalLanguageGeneration print("Natural language understanding, example:") naturalLanguageUnderstanding = NaturalLanguageUnderstanding() @@ -18,3 +19,8 @@ print(monitor.get_last().act) print("Dialog policy, next dialogue act:") dialog_policy = DialogPolicy(monitor.get_all()) 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)