{"id":16780140,"url":"https://github.com/hk669/chatbot","last_synced_at":"2026-05-22T05:09:27.073Z","repository":{"id":177647216,"uuid":"660100213","full_name":"Hk669/Chatbot","owner":"Hk669","description":"The chatbot is a rule-based system that classifies user intents using a bag-of-words approach. It predicts intents based on the user's input, retrieves a random response from a predefined set of responses associated with each intent, and generates the appropriate reply. ","archived":false,"fork":false,"pushed_at":"2023-08-14T18:54:17.000Z","size":411,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T06:32:34.861Z","etag":null,"topics":["chatbot","deep-learning","fastapi","machine-learning","neural-network","nlp"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Hk669.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":"2023-06-29T08:42:28.000Z","updated_at":"2023-07-10T05:12:21.000Z","dependencies_parsed_at":"2023-12-10T06:45:09.199Z","dependency_job_id":null,"html_url":"https://github.com/Hk669/Chatbot","commit_stats":null,"previous_names":["hk669/chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hk669%2FChatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hk669%2FChatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hk669%2FChatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hk669%2FChatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hk669","download_url":"https://codeload.github.com/Hk669/Chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926072,"owners_count":20369910,"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","deep-learning","fastapi","machine-learning","neural-network","nlp"],"created_at":"2024-10-13T07:34:10.109Z","updated_at":"2026-05-22T05:09:22.054Z","avatar_url":"https://github.com/Hk669.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chatbot Description\nThis chatbot is a machine learning-based conversational agent trained to understand and respond to user input. It utilizes a neural network model built with Keras, a deep learning library, to provide intelligent responses in natural language.\n\nThe chatbot's functionality is based on a bag-of-words approach, where input text is processed and transformed into a binary representation of word occurrence. The training data consists of a collection of documents, with each document containing a list of words or tokens.\n\nDuring the training process, the chatbot preprocesses the documents by applying lemmatization and lowercasing to the words. It then constructs a bag-of-words representation for each document by encoding the presence or absence of words from a predefined vocabulary.\n\nThe training data is split into input (bag-of-words) and output representations. The input is fed into a sequential neural network model, which consists of multiple dense layers with dropout regularization. The model is compiled with a categorical cross-entropy loss function and optimized using the stochastic gradient descent (SGD) algorithm.\n\nThe trained model can be used to generate responses by inputting new text data. The chatbot selects the most likely class or category for the input based on the model's output probabilities. It then formulates a response based on predefined mappings or patterns associated with the predicted class.\n\nThe chatbot's performance can be improved by training it on a diverse and representative dataset, fine-tuning the model architecture, and optimizing the hyperparameters.\n\n# Usage\nTo use the chatbot, you need to provide a set of training documents in the appropriate format. Each document should consist of a list of words or tokens along with the corresponding class or category.\n\nOnce the training data is prepared, run the training script to train the model on the data. After training, the model can be saved for future use.\n\nTo interact with the chatbot, provide user input as text data. The chatbot will process the input, generate a response based on the trained model, and display it to the user.\n\n# Sample of the bot\n\n\u003cimg width=\"364\" alt=\"image\" src=\"https://github.com/Hk669/Chatbot/assets/96101829/9039b045-109d-49bc-9fda-92b0b56622bb\"\u003e\n\nThe input is given to the bot and it understands the sentence and returns the relevant answer which is trained to the model \n\n\u003cimg width=\"397\" alt=\"image\" src=\"https://github.com/Hk669/Chatbot/assets/96101829/19fd0616-d522-4b96-b533-256543f95a58\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhk669%2Fchatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhk669%2Fchatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhk669%2Fchatbot/lists"}