26 lines
802 B
Python
26 lines
802 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
|
|
#
|
|
# generator_jezyka_nautalnego(frame, questions, state)
|
|
|
|
if __name__ == '__main__':
|
|
main()
|