Simple chatbot implemented using TensorFlow and (NLP). The chatbot is trained on a predefined data and can respond to inputs accordingly.
preparation.py: => load, preprocess data, and save data.training.py: => build and train the model.util.py: => processing sentences and making predictions.app.py: => execute the training and test the chatbot.
- Python 3.x
- TensorFlow
- NLTK
- NumPy
- Pickle
-
Clone the repository:
git clone https://github.com/KhaledAlabssi/Buzzy_the_Chatbot.git cd Buzzy_the_Chatbot -
Install the required packages:
pip install -r requirements.txt
-
Prepare the intents file (
intents.json) with the training data "data examples" are shared in (internts.example.json). -
Run the main script to train the model:
python app.py
-
The trained model will be saved as
chatbot_model.h5, and the processed data will be saved aswords.pklandclasses.pkl.
LinkedIn: linkedIn.com/in/Khaled-Alabssi
GitHub: github.com/KhaledAlabssi
Website: khaled.alabssi.com