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