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('>>>')
|
2022-05-25 12:52:02 +02:00
|
|
|
|
2022-04-19 22:53:05 +02:00
|
|
|
frame = analizator_jezyka_naturalnego(text)
|
2022-05-25 12:52:02 +02:00
|
|
|
print("[INFO] - Analizator: {}".format(frame))
|
|
|
|
|
2022-04-19 22:53:05 +02:00
|
|
|
state = monitor_stanu_dialogowego(frame)
|
2022-05-25 12:52:02 +02:00
|
|
|
print("[INFO] - Liczba elementów stanu: {}".format(len(state)))
|
|
|
|
|
|
|
|
questions = taktyka_dialogu(state, frame)
|
|
|
|
print("[INFO] - Taktyka: {}".format(questions))
|
|
|
|
|
|
|
|
generator_jezyka_nautalnego(frame, questions)
|
2022-04-19 21:20:46 +02:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|