Systemy_dialogowe/system_mockup/system_dialogowy.py

26 lines
802 B
Python
Raw Normal View History

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
def main():
running = True
2022-06-01 12:22:40 +02:00
state = []
while running:
text = input('>>>')
2022-05-25 12:52:02 +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-08 10:23:01 +02:00
#
# generator_jezyka_nautalnego(frame, questions, state)
if __name__ == '__main__':
main()