SD-project-22/trailminator/trailminator.py

27 lines
632 B
Python
Raw Normal View History

2022-04-20 11:25:16 +02:00
import dst
import nlu
import dp
import nlg
if __name__ == "__main__":
2022-06-01 16:25:19 +02:00
nlg = nlg.Nlg()
nlu = nlu.Nlu()
dst = dst.Dst()
next_question = dst.get_next_question()
while (next_question):
print(next_question)
response = input()
res_tokenized = nlu.tokenize(response)
dst.save_answer(res_tokenized['slots'])
next_question = dst.get_next_question()
print(dst.checklist)
2022-04-20 11:25:16 +02:00
# print(dp_params)
2022-06-01 16:25:19 +02:00
# nlg_params = dp.Dp(*dp_params).identify()
2022-04-20 11:25:16 +02:00
# print(nlg_params)
2022-06-01 16:25:19 +02:00
#print(f"{msg}\n{nlg.Nlg(nlg_params).response()}")
2022-05-18 13:11:49 +02:00
2022-06-01 16:25:19 +02:00
#d = dst.Dst()
#print(d.get_next_question())