SystemyDialogowe/.ipynb_checkpoints/chatbot-checkpoint.ipynb
2022-06-07 23:26:14 +02:00

3.5 KiB
Raw Blame History

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)
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_12388/3924194050.py in <module>
      1 from modules.DST import Dst
----> 2 from modules.AJN import Ajn
      3 
      4 
      5 

D:\Adi\Szkoła\Semestr 8\Systemy dialogowe\Projekt\SystemyDialogowe\modules\AJN.py in <module>
----> 1 import jsgf
      2 from os import listdir
      3 from os.path import isfile, join
      4 
      5 mypath = "./grammar/"

ModuleNotFoundError: No module named 'jsgf'