Welcome to the Chatbot Model project! This application is a Java-based chatbot designed to support users with helpful quotes and responses based on intent recognition and sentiment analysis. It's perfect for mental health support, conversational AI, or as a foundational project for advanced chatbot applications. π

- π¬ Intent Recognition: Uses machine learning (Naive Bayes with Weka) to detect the user's intent.
- π§ Sentiment Analysis: Analyzes user sentiment using Stanford CoreNLP to enhance responses.

- π Quote Retrieval: Provides relevant quotes based on the recognized intent.

- β‘ Real-time Processing: Multithreaded for smooth and responsive interaction.

- π Data-Driven: Uses CSV files for training intents and storing quotes for easy customization.
- Java 22: The core programming language.
- Stanford CoreNLP: For advanced NLP and sentiment analysis.
- Weka: For training and intent classification using machine learning.
- Maven: Dependency management and build automation.
- SLF4J: Simple and flexible logging.
Ensure you have the following installed:
- Java 22+
- Maven
-
Clone the Repository:
git clone [https://github.com/22pt16/IntentDetection_ChatBot] cd IntentDetection_ChatBot -
Set Up Resources:
- Place your
intent.csvandquotes.csvfiles in thesrc/main/resourcesdirectory.
- Place your
-
Build the Project:
mvn clean install
-
Run the Application:
java -cp target/Chat-1.0-SNAPSHOT.jar org.example.ChatbotModel
-
Start the chatbot:
Welcome to Mental Support Bot! I'm here to listen and offer support. Please type 'help' for more information or ask a question to get started! -
User Input:
User: I feel stressed. -
Chatbot Response:
Sentiment: Negative Intent: mental-support Chatbot: "It's okay to feel overwhelmed sometimes. Take a deep breath and focus on one step at a time."
Contributions are welcome! π If you'd like to improve this project:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature-name). - Commit your changes (
git commit -m 'Add feature-name'). - Push to your branch (
git push origin feature-name). - Submit a pull request.
This project is licensed under the MIT License.
We hope you find this project helpful for building your own conversational AI applications. Feel free to reach out if you have questions or suggestions! π€