{"id":24154901,"url":"https://github.com/sanjurajveer/chatbot","last_synced_at":"2026-05-18T02:35:44.293Z","repository":{"id":270265550,"uuid":"909800949","full_name":"sanjurajveer/chatbot","owner":"sanjurajveer","description":"This is basic chatbot","archived":false,"fork":false,"pushed_at":"2024-12-29T20:35:20.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T19:56:49.015Z","etag":null,"topics":["classification","conversational-ai","nlp-machine-learning","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanjurajveer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-29T20:12:35.000Z","updated_at":"2024-12-29T20:37:29.000Z","dependencies_parsed_at":"2024-12-29T21:23:35.159Z","dependency_job_id":"0817f45c-bc2f-4f03-8b15-cc69778fc712","html_url":"https://github.com/sanjurajveer/chatbot","commit_stats":null,"previous_names":["sanjurajveer/chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sanjurajveer/chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjurajveer%2Fchatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjurajveer%2Fchatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjurajveer%2Fchatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjurajveer%2Fchatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanjurajveer","download_url":"https://codeload.github.com/sanjurajveer/chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanjurajveer%2Fchatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["classification","conversational-ai","nlp-machine-learning","streamlit"],"created_at":"2025-01-12T12:26:38.070Z","updated_at":"2026-05-18T02:35:44.277Z","avatar_url":"https://github.com/sanjurajveer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chatbot with Intent Recognition\n\nThis project is a simple chatbot built using Python, Streamlit, and machine learning techniques. The chatbot can respond to a variety of user inputs based on predefined intents and patterns. It uses a logistic regression model to classify user inputs and generate appropriate responses.\n\nTo run this chatbot go to your terminal cd to your chatbot.py file then type: streamlit run chatbot.py\n\n## Features\n- Responds to common queries like greetings, goodbyes, and thanks.\n- Provides help with Python programming concepts.\n- Shares motivational quotes and jokes.\n- Offers learning recommendations for Python, AI, and books.\n- Handles fallback cases for unrecognized inputs.\n- Built-in SSL workaround for downloading NLTK data.\n\n## Technologies Used\n- **Python**: Core programming language for the chatbot.\n- **Streamlit**: For building the user interface.\n- **NLTK**: For natural language preprocessing.\n- **scikit-learn**: For vectorization (TfidfVectorizer) and intent classification (Logistic Regression).\n\n## Installation\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/sanjuraveer/chatbot.git\n   cd chatbot\n   ```\n\n2. Create a virtual environment and activate it:\n   ```bash\n   python -m venv venv\n   # Activate on Windows:\n   venv\\Scripts\\activate\n   # Activate on macOS/Linux:\n   source venv/bin/activate\n   ```\n\n3. Install the required dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Download the necessary NLTK data:\n   ```bash\n   python -c \"import nltk; nltk.download('punkt')\"\n   ```\n\n## Usage\n1. Run the chatbot application:\n   ```bash\n   streamlit run chatbot.py\n   ```\n\n2. Open your browser and navigate to the URL provided by Streamlit (usually `http://localhost:8501`).\n\n3. Start chatting with the chatbot by typing your message in the input box.\n\n## File Structure\n```\nchatbot/\n├── chatbot.py          # Main application script\n├── nltk_data/          # Directory for NLTK data\n├── requirements.txt    # Python dependencies\n└── README.md           # Project documentation\n```\n\n## Example Intents\nBelow are some example intents and patterns supported by the chatbot:\n\n| Tag             | Example Patterns                           |\n|-----------------|--------------------------------------------|\n| greeting        | Hi, Hello, Hey, How are you, What's up     |\n| goodbye         | Bye, See you later, Goodbye, Take care     |\n| thanks          | Thank you, Thanks, I appreciate it         |\n| programming_help| How to write a for loop in Python?         |\n| jokes           | Tell me a joke, Make me laugh              |\n| motivation      | I feel down, Motivate me, Give me a quote  |\n| learning_recommendations | How can I learn Python?, Good books |\n\n## Customization\nTo add more intents:\n1. Update the `intents` list in `chatbot.py` with new tags, patterns, and responses.\n2. Retrain the model by running the script again.\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for more information.\n\n## Contributing\nContributions are welcome! Feel free to open issues or submit pull requests to improve the chatbot.\n\n## Author\nDeveloped by [Sanju Raj](https://github.com/sanjurajveer).\ncredits:Aman Kharwal\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjurajveer%2Fchatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanjurajveer%2Fchatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjurajveer%2Fchatbot/lists"}