Systemy_dialogowe/system_mockup/system_dialogowy.py

24 lines
745 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
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-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-01 12:53:12 +02:00
questions = taktyka_dialogu(frame) # todo dodac stan
2022-05-25 12:52:02 +02:00
2022-06-01 12:22:40 +02:00
state = monitor_stanu_dialogowego(frame, questions)
2022-05-25 12:52:02 +02:00
2022-06-01 12:22:40 +02:00
generator_jezyka_nautalnego(frame, questions, state)
if __name__ == '__main__':
main()