This repository contains a chatbot project built using Python, leveraging natural language processing (NLP) techniques. The chatbot is designed to respond to user queries based on predefined text data and can handle multiple .txt
files to extract relevant information.
- Natural Language Processing: Utilizes NLP for tokenization, lemmatization, and keyword-based response generation.
- Multi-file Support: Reads and processes multiple
.txt
files simultaneously to broaden the scope of information available for responses. - Interactive Responses: Includes greeting responses, can answer questions about the date, and follows up with users based on their responses.
- Context Awareness: Tracks the context of conversations to provide relevant follow-up questions and maintain a conversational flow.
-
Clone the repository:
-
Navigate to the project directory:
-
Install the required Python packages:
- Prepare the Data: Place your
.txt
files in the project directory. The chatbot will read and process these files to respond to user queries. - Run the Chatbot: Execute the chatbot script.
- Interact: Engage with the chatbot through the terminal. The bot can respond to greetings, provide information based on the loaded
.txt
files, tell the current date, and more.
chatbot.py
: The main script containing the chatbot logic.data/
: Directory to store the.txt
files that the chatbot uses to generate responses.README.md
: Project documentation.requirements.txt
: List of Python packages required for the project.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.