Systemy_dialogowe/system_mockup/generator_jezyka_nautalnego.py

20 lines
518 B
Python
Raw Normal View History

2022-05-25 12:52:02 +02:00
from taktyka_dialogu import Questions
2022-04-20 09:14:16 +02:00
welcome = 'Witaj!'
unknown = "Nie rozumiem."
2022-05-25 12:52:02 +02:00
end = "Żegnaj!"
2022-04-20 09:14:16 +02:00
2022-05-25 12:52:02 +02:00
def generator_jezyka_nautalnego(frame, question):
if question != Questions.NONE:
#ask additional questions
if question == Questions.TIME:
print("Z jakiego czasu?")
else:
#dont ask questions
if frame['act'] == "hello":
print(welcome)
elif frame['act'] == "bye":
print(end)
2022-04-20 09:14:16 +02:00
else:
2022-05-25 12:52:02 +02:00
print(unknown)