Upload files to "src"
This commit is contained in:
parent
cd8da4bdcd
commit
06320b8682
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user