{"id":18518744,"url":"https://github.com/karma9874/seq2seq-chatbot","last_synced_at":"2025-07-30T15:20:35.249Z","repository":{"id":108451144,"uuid":"191734197","full_name":"karma9874/Seq2Seq-Chatbot","owner":"karma9874","description":"Chatbot based Seq2Seq model with bidirectional rnn and attention mechanism with tensorflow, trained on Cornell Movie-Dialogs Corpus and deployed on a Flask Server ","archived":false,"fork":false,"pushed_at":"2020-08-24T17:32:17.000Z","size":40472,"stargazers_count":24,"open_issues_count":1,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T02:44:37.786Z","etag":null,"topics":["attention-mechanism","bidirectional-lstm","chatbot","deep-learning","flask","nlp","question-answering","seq2seq","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karma9874.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":"2019-06-13T09:38:01.000Z","updated_at":"2025-02-25T08:52:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"29efc02d-51ad-45d4-a59e-0e11676afd52","html_url":"https://github.com/karma9874/Seq2Seq-Chatbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karma9874/Seq2Seq-Chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma9874%2FSeq2Seq-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma9874%2FSeq2Seq-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma9874%2FSeq2Seq-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma9874%2FSeq2Seq-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karma9874","download_url":"https://codeload.github.com/karma9874/Seq2Seq-Chatbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karma9874%2FSeq2Seq-Chatbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267889983,"owners_count":24161325,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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":["attention-mechanism","bidirectional-lstm","chatbot","deep-learning","flask","nlp","question-answering","seq2seq","tensorflow"],"created_at":"2024-11-06T17:14:25.033Z","updated_at":"2025-07-30T15:20:35.240Z","avatar_url":"https://github.com/karma9874.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Seq2Seq-Chatbot\n\n## Introduction\nThis Chatbot is a TensorFlow implementation of Seq2Seq Mode. It make use of a seq2seq model RNN for sentence predictions. The chatbot is trained on Cornell Movie Dialogs Corpus on Conversation of lenghth between 5 to 2 words\n\n## Installation\nTo run this chabtot you will need:\n* Python 3.5 \n* Tensorflow (1.13.1)\n* Numpy\n* Flask\n* Matplotlib\n* [Dataset](http://www.cs.cornell.edu/~cristian/data/cornell_movie_dialogs_corpus.zip)\n\n## Running\n### To chat with the trained model from Web Chat:\n1. First install the required depedencies from `Chat_UI_Web` and run \n`pip install -r requirment.txt`\n2. From the Chat_UI_Web directory run run.py\n`python run.py`\n3. Open a browser to the URL indicated by the server console, This is typically: http://localhost:5000/\n\n### To chat with the trained model from Python Console:\n1. First install the required depedencies from root directory and run \n`pip install -r requirment.txt`\n2. From the root directory run \n`python chat.py`\n\n## List of Hyperparameters\n* Batch_size to 128\n* Rnn_size to 128\n* Embed_size to 128\n* Learning_rate to 0.0.1\n* Epochs to 500\n* Keep_prob to 0.75\n\n## For Training Model \nTo Train Model from Python Console:\n1. Configure the `config.py` file for desired training hyperparameters\n2. Run train.py\n`python train.py`\n3. Make sure the datasets should be present in the `datasets` folder\n\n## Results\nModel was able to train to `Accuracy of 62%` and `Loss of 19%` and after that it was overfitting\n\n### Accuracy\n\u003cimg src=\"https://github.com/karma9874/Seq2Seq-Chatbot/blob/master/Images/Accuracy.JPG\" alt=\"alt text\" width=\"500\" height=\"300\"\u003e\n\n### Loss\n\u003cimg src=\"https://github.com/karma9874/Seq2Seq-Chatbot/blob/master/Images/Loss.JPG\" alt=\"alt text\" width=\"500\" height=\"300\"\u003e\n\n### Chat Results\n```\nHuman: who are you\nBot: girlfriend\nHuman: who am i\nBot: doctor livingston\nHuman: where are you from\nBot: southern california\nHuman: how old are you\nBot: nineteen or\nHuman: are you a boy\nBot: i am trying\nHuman: are you a girl\nBot: something like that\nHuman: do you drink\nBot: no thanks\n```\nSome Funny Result\n\u003cimg src=\"https://github.com/karma9874/Seq2Seq-Chatbot/blob/master/Images/Result.JPG\" alt=\"alt text\" width=\"850\" height=\"500\"\u003e\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarma9874%2Fseq2seq-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarma9874%2Fseq2seq-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarma9874%2Fseq2seq-chatbot/lists"}