3.5 KiB
3.5 KiB
from modules.DST import Dst
from modules.AJN import Ajn
if __name__ == "__main__":
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)
[1;31m---------------------------------------------------------------------------[0m [1;31mModuleNotFoundError[0m Traceback (most recent call last) [1;32m~\AppData\Local\Temp/ipykernel_12388/3924194050.py[0m in [0;36m<module>[1;34m[0m [0;32m 1[0m [1;32mfrom[0m [0mmodules[0m[1;33m.[0m[0mDST[0m [1;32mimport[0m [0mDst[0m[1;33m[0m[1;33m[0m[0m [1;32m----> 2[1;33m [1;32mfrom[0m [0mmodules[0m[1;33m.[0m[0mAJN[0m [1;32mimport[0m [0mAjn[0m[1;33m[0m[1;33m[0m[0m [0m[0;32m 3[0m [1;33m[0m[0m [0;32m 4[0m [1;33m[0m[0m [0;32m 5[0m [1;33m[0m[0m [1;32mD:\Adi\Szkoła\Semestr 8\Systemy dialogowe\Projekt\SystemyDialogowe\modules\AJN.py[0m in [0;36m<module>[1;34m[0m [1;32m----> 1[1;33m [1;32mimport[0m [0mjsgf[0m[1;33m[0m[1;33m[0m[0m [0m[0;32m 2[0m [1;32mfrom[0m [0mos[0m [1;32mimport[0m [0mlistdir[0m[1;33m[0m[1;33m[0m[0m [0;32m 3[0m [1;32mfrom[0m [0mos[0m[1;33m.[0m[0mpath[0m [1;32mimport[0m [0misfile[0m[1;33m,[0m [0mjoin[0m[1;33m[0m[1;33m[0m[0m [0;32m 4[0m [1;33m[0m[0m [0;32m 5[0m [0mmypath[0m [1;33m=[0m [1;34m"./grammar/"[0m[1;33m[0m[1;33m[0m[0m [1;31mModuleNotFoundError[0m: No module named 'jsgf'