24 lines
745 B
Python
24 lines
745 B
Python
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
|
|
state = []
|
|
|
|
while running:
|
|
text = input('>>>')
|
|
|
|
frame = analizator_jezyka_naturalnego(text)
|
|
#{'act': 'notifications', 'slots': [('time_when', None), ('liczba', ''), ('timeunit', None)]}
|
|
|
|
questions = taktyka_dialogu(frame) # todo dodac stan
|
|
|
|
state = monitor_stanu_dialogowego(frame, questions)
|
|
|
|
generator_jezyka_nautalnego(frame, questions, state)
|
|
|
|
if __name__ == '__main__':
|
|
main()
|