2022-04-19 21:20:46 +02:00
|
|
|
from analizator_jezyka_naturalnego import analizator_jezyka_naturalnego
|
|
|
|
from monitor_stanu_dialogowego import monitor_stanu_dialogowego
|
|
|
|
from taktyka_dialogu import taktyka_dialogu
|
2022-06-08 12:09:36 +02:00
|
|
|
# from generator_jezyka_nautalnego import generator_jezyka_nautalnego
|
2022-04-19 21:20:46 +02:00
|
|
|
|
|
|
|
def main():
|
2022-04-19 22:53:05 +02:00
|
|
|
running = True
|
2022-06-01 12:22:40 +02:00
|
|
|
state = []
|
2022-04-19 22:53:05 +02:00
|
|
|
|
|
|
|
while running:
|
|
|
|
text = input('>>>')
|
2022-05-25 12:52:02 +02:00
|
|
|
|
2022-04-19 22:53:05 +02:00
|
|
|
frame = analizator_jezyka_naturalnego(text)
|
2022-06-08 12:09:36 +02:00
|
|
|
# print(frame)
|
2022-06-01 12:53:12 +02:00
|
|
|
#{'act': 'notifications', 'slots': [('time_when', None), ('liczba', ''), ('timeunit', None)]}
|
2022-05-25 12:52:02 +02:00
|
|
|
|
2022-06-08 12:09:36 +02:00
|
|
|
state = monitor_stanu_dialogowego(frame)
|
|
|
|
# print(state)
|
2022-05-25 12:52:02 +02:00
|
|
|
|
2022-06-08 12:09:36 +02:00
|
|
|
questions = taktyka_dialogu(state, frame) # todo dodac stan
|
2022-06-14 21:51:44 +02:00
|
|
|
# print(questions)
|
2022-06-08 10:23:01 +02:00
|
|
|
#
|
|
|
|
# generator_jezyka_nautalnego(frame, questions, state)
|
2022-04-19 21:20:46 +02:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|