This project is a Python Chatbot program.
Using Deep Learning, this bot is able to provide answers to simple questions.
This Python program was created under Ubuntu 20.04.1 LTS Operative System,
Python 3.8.2, Pip 20.0.2, Numpy 1.19.2, Nltk 3.5.0 and Torch 1.6.0.
i) Installing Python v3.8+
It is possible that Python has been already installed, one could check by using the commands:
$ python3 --version
[Python 3.8.2]
If errors occurred or Python has not yet been installed use the following code:
# Refreshes the repositories
$ sudo apt update
# Installs latest available python3
$ sudo apt install -y python3
ii) Installing Pip v20+ and required modules
In order to install Pip, one could should use the commands:
$ python3 -m pip --version
[pip 20.2.2 from ... (python 3.8)]
# Installing pip
$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ python3 get-pip.py
# Its possible to update pip using
$ python3 -m pip install -U pip
# Install all requried pip modules
$ pip install -r requirements.txt
iii) Download nltk 'all'
While in interactive mode or using the command:
$ python3 -c "import nltk; nltk.download('all')"
[...]
iv) (Optionally) Install Nvidia CUDA devkit.
WARNING: Please run the code from root project!!!
$ cd Chatbot
$ python src/bot_train.py
[...]
$ python src/main.py
[Let's chat! (type 'quit' to exit)]
Version 0.3 - Current version
Lucio Afonso
This project is licensed under the GPL License - see the LICENSE.md file for details
Official sites:
https://python.org/
https://github.com/pypa/pip
https://nltk.org/book/
Special thanks: