A Natural Language Processing (NLP) based integratable chatbot using FastAPI
- Create a virtual environment
- Install dependencies from requirements.txt
Natural Language Tool Kit installation, run the following commands in the python terminal.
import nltk
nltk.download()
You can add the custom corpora or the data for the chatbot to refer to as a text content in the filepath resources/source.txt. It is advisable to keep the contents in the corpora to be robust enough so that it could answer based on the appropriate commonly used key words.
Run the main.py in the terminal. The server will be deployed in 127.0.0.1:8000.