Skip to content

PrasanthSurya-dev/Mini-Chatbot-Python-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Mini Chatbot Project in Python

A Python-based chatbot that uses Natural Language Processing (NLP) and a neural network to understand and respond to user inputs. This project demonstrates how to design, train, and deploy a simple chatbot using custom intents.


πŸš€ Features

  • Interactive chatbot for text-based queries.
  • Customizable intents in intents.json.
  • Uses Bag of Words (BoW) and one-hot encoding for NLP.
  • Neural network model built with TensorFlow/Keras.
  • Lightweight and easy to extend or adapt.

πŸ“ File Structure

  • intents.json: Predefined patterns, tags, and responses.
  • ChatBot.ipynb: Jupyter Notebook with model training and chatbot interface.
  • README.md: Project documentation (this file).

🧰 Requirements

Install dependencies with:

pip install tensorflow numpy nltk

πŸ› οΈ How to Run

  1. Open ChatBot.ipynb in Jupyter Notebook or Google Colab.
  2. Run all cells step-by-step:
    • Load data from intents.json
    • Preprocess text
    • Train the neural network
    • Start chatting with the bot

πŸ”§ Customization

  • Add or edit patterns/responses in intents.json.
  • Retrain the model to reflect changes using the notebook.

🧠 How It Works

  1. Text Preprocessing: User inputs and patterns are tokenized and transformed using Bag of Words.
  2. Model Training: A neural network learns to classify the intent of inputs.
  3. Response Generation: The predicted tag is used to fetch a matching response from intents.json.

πŸ“Œ Note

This is a basic chatbot designed for educational purposes. It can be enhanced further using advanced NLP techniques like word embeddings or transformers.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published