A simple chatbot in python using sequence to sequence model. Currently in development. Will make a Ipython notebook version as well.
-
Run the requirements.txt for 64-bit python installation.
py -m pip install -r requirements.txt
-
Put the subtitle files inside a folder or multiple folders and put these folders inside the subs folder.
So the idea is, you can put a single season or the whole series' subtitles in a folder and you can have multiple such type of folders. Then you have to just put the folders under subs folder. -
Run create_dataset.py
This creates 2 .npy files containing questions and answers.
py create_dataset.py
-
Run chatbot.py to train the bot using the above created dataset.
py chatbot.py
-
To chat with the bot, run inference.py.
py inference.py