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
|
|
|
|
|
|
|
|
while running:
|
|
|
|
text = input('>>>')
|
|
|
|
frame = analizator_jezyka_naturalnego(text)
|
2022-05-25 12:21:06 +02:00
|
|
|
#print("Analizator: {}".format(frame))
|
2022-04-19 22:53:05 +02:00
|
|
|
state = monitor_stanu_dialogowego(frame)
|
2022-05-25 12:21:06 +02:00
|
|
|
#print("Stan: {}".format(state))
|
2022-04-20 10:55:53 +02:00
|
|
|
response_frames = taktyka_dialogu(state, frame)
|
2022-04-19 23:22:44 +02:00
|
|
|
generator_jezyka_nautalnego(response_frames)
|
2022-04-19 21:20:46 +02:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|