{"id":23692449,"url":"https://github.com/subhoshri/chatbot","last_synced_at":"2026-02-06T06:31:50.405Z","repository":{"id":267666426,"uuid":"898602309","full_name":"Subhoshri/Chatbot","owner":"Subhoshri","description":"A Contextual Chatbot","archived":false,"fork":false,"pushed_at":"2024-12-24T06:57:18.000Z","size":5743,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T00:43:28.362Z","etag":null,"topics":["chatbot","css","deep-learning","flask","html","javascript","machine-learning","nlp","python","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Subhoshri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-04T17:28:42.000Z","updated_at":"2024-12-24T06:57:22.000Z","dependencies_parsed_at":"2025-01-04T12:48:50.072Z","dependency_job_id":null,"html_url":"https://github.com/Subhoshri/Chatbot","commit_stats":null,"previous_names":["subhoshri/chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subhoshri%2FChatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subhoshri%2FChatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subhoshri%2FChatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subhoshri%2FChatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Subhoshri","download_url":"https://codeload.github.com/Subhoshri/Chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758828,"owners_count":19692033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["chatbot","css","deep-learning","flask","html","javascript","machine-learning","nlp","python","tensorflow"],"created_at":"2024-12-30T03:27:53.427Z","updated_at":"2026-01-17T08:30:19.595Z","avatar_url":"https://github.com/Subhoshri.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bakerly, the Deep Learning Chatbot\n\n## Introduction\nThis project is a contextual chatbot built using TensorFlow. The chatbot is designed to provide meaningful responses based on general input queries and those related to baking by leveraging natural language processing (NLP) techniques and machine learning.\n\n## Features\n- Tokenization and stemming of input text for preprocessing.\n- Classification of user intents using bag-of-words.\n- Training a neural network to classify intents.\n- Generating appropriate responses based on user queries.\n- Flexible and extensible design to add more intents and responses.\n\n## Requirements\n- Python 3.7 or higher\n- Libraries:\n  - TensorFlow\n  - Numpy\n  - NLTK\n \nRefer to `requirements.txt` for installing all the dependencies.\n\n\n## Setup Instructions\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/Subhoshri/Chatbot\n   cd Chatbot\n   ```\n\n2. **Install required Libraries**:\n   ```bash\n   pip install Library-Name\n   ```\n\n3. **Prepare the Environment**:\n   - Download NLTK data (if not already installed):\n     ```python\n     import nltk\n     nltk.download('punkt')\n     ```\n\n4. **Update the intents file**:\n   Modify the `intents.json` file to add or update chatbot intents and patterns.\n\n5. **Run the Application**:\n   ```python\n   python app.py\n   ```\n\n6. Enter the URL provided after running the previous commands into your web browser.\n\nBakerly is now ready to chat!\n\n\n## How It Works\n### 1. **Data Preprocessing**\n   - The `intents.json` file contains training data in patterns, and their associated tags (and contexts).\n   - Words in patterns are tokenized and stemmed using NLTK's Stemmer.\n   - A bag-of-words representation is generated for each pattern.\n\n### 2. **Model Training**\n   - A feed-forward neural network (FFNN) is trained on the bag-of-words and output tags using TensorFlow.\n   - The output is a one-hot-encoded vector representing the possible intent classes.\n\n### 3. **Response Generation**\n   - The trained model predicts the intent of user input.\n   - The bot selects an appropriate response from the `responses` list associated with the predicted intent.\n\n## Example Workflow\n1. **User Input**: *\"Hello!\"*\n2. **Preprocessing**:\n   - Tokenize: `[\"hello\"]`\n   - Stem: `[\"hello\"]`\n   - Bag of Words: `[1, 0, 0, 0, ...]`\n3. **Model Prediction**: Intent -\u003e `greeting`\n4. **Bot Response**: *\"Hi there! How can I assist you today?\"*\n\n## Further Scope of Update\n- **Adding New Intents**:\n  - Update the `intents.json` file with new intents, patterns, and responses.\n  - Retrain the model.\n\n- **Improving Responses**:\n  - Use additional NLP techniques, such as named entity recognition (NER) or sentiment analysis, to enhance contextual responses.\n\n\n## Known Issues\n- The chatbot may not handle out-of-scope queries effectively.\n- Responses are limited to predefined data in the `intents.json` file.\n\n\n## References\n- TensorFlow Documentation: [https://www.tensorflow.org](https://www.tensorflow.org)\n\n---\n\n## License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhoshri%2Fchatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubhoshri%2Fchatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhoshri%2Fchatbot/lists"}