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
|
|
|
|
from generator_jezyka_nautalnego import generator_jezyka_nautalnego
|
|
|
|
|
|
|
|
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-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-07 20:06:36 +02:00
|
|
|
state = monitor_stanu_dialogowego(frame)
|
2022-05-25 12:52:02 +02:00
|
|
|
|
2022-06-07 20:06:36 +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
|
|
|
generator_jezyka_nautalnego(frame, questions, state)
|
2022-04-19 21:20:46 +02:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|