{"id":13535072,"url":"https://github.com/nicolas-ivanov/tf_seq2seq_chatbot","last_synced_at":"2025-04-02T00:32:23.603Z","repository":{"id":55052260,"uuid":"47565874","full_name":"nicolas-ivanov/tf_seq2seq_chatbot","owner":"nicolas-ivanov","description":"[unmaintained]","archived":false,"fork":false,"pushed_at":"2020-04-14T15:18:49.000Z","size":19151,"stargazers_count":420,"open_issues_count":17,"forks_count":203,"subscribers_count":48,"default_branch":"master","last_synced_at":"2024-11-02T23:32:10.251Z","etag":null,"topics":["chatbot","seq2seq","tensorflow"],"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/nicolas-ivanov.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}},"created_at":"2015-12-07T16:52:57.000Z","updated_at":"2024-09-24T11:11:05.000Z","dependencies_parsed_at":"2022-08-14T10:10:41.108Z","dependency_job_id":null,"html_url":"https://github.com/nicolas-ivanov/tf_seq2seq_chatbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolas-ivanov%2Ftf_seq2seq_chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolas-ivanov%2Ftf_seq2seq_chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolas-ivanov%2Ftf_seq2seq_chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolas-ivanov%2Ftf_seq2seq_chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicolas-ivanov","download_url":"https://codeload.github.com/nicolas-ivanov/tf_seq2seq_chatbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246735300,"owners_count":20825220,"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","seq2seq","tensorflow"],"created_at":"2024-08-01T08:00:49.332Z","updated_at":"2025-04-02T00:32:18.593Z","avatar_url":"https://github.com/nicolas-ivanov.png","language":"Python","funding_links":[],"categories":["Codes"],"sub_categories":[],"readme":"## tensorflow seq2seq chatbot\n\n\u003e *Note: the repository is not maintained. Feel free to PM me if you'd like to take up the maintainance.*\n\nBuild a general-purpose conversational chatbot based on a hot \nseq2seq approach implemented in [tensorflow](https://www.tensorflow.org/versions/master/tutorials/seq2seq/index.html#sequence-to-sequence_basics).\nSince it doesn't produce good results so far, also consider other implementations of [seq2seq](https://github.com/nicolas-ivanov/seq2seq_chatbot_links).\n\nThe current results are pretty lousy:\n\n    hello baby\t        - hello\n    how old are you ?   - twenty .\n    i am lonely\t        - i am not\n    nice                - you ' re not going to be okay .\n    so rude\t            - i ' m sorry .\n    \nDisclaimer: \n\n* the answers are hand-picked (it looks cooler that way)\n* chatbot has no power to follow the conversation line so far; in the example above it's a just a coincidence (hand-picked one)\n\nEveryone is welcome to investigate the code and suggest the improvements.\n\n**Actual deeds**\n\n* realise how to diversify chatbot answers (currently the most probable one is picked and it's dull)\n\n\n**Papers**\n\n* [Sequence to Sequence Learning with Neural Networks](http://papers.nips.cc/paper/5346-sequence-to-sequence-learning-with-neural-networks.pdf)\n* [A Neural Conversational Model](http://arxiv.org/pdf/1506.05869v1.pdf)\n\n**Nice picture**\n\n[![seq2seq](https://4.bp.blogspot.com/-aArS0l1pjHQ/Vjj71pKAaEI/AAAAAAAAAxE/Nvy1FSbD_Vs/s640/2TFstaticgraphic_alt-01.png)](http://4.bp.blogspot.com/-aArS0l1pjHQ/Vjj71pKAaEI/AAAAAAAAAxE/Nvy1FSbD_Vs/s1600/2TFstaticgraphic_alt-01.png)\n\nCurtesy of [this](http://googleresearch.blogspot.ru/2015/11/computer-respond-to-this-email.html) article.\n\n**Setup**\n\n    git clone git@github.com:nicolas-ivanov/tf_seq2seq_chatbot.git\n    cd tf_seq2seq_chatbot\n    bash setup.sh\n    \n**Run**\n\nTrain a seq2seq model on a small (17 MB) corpus of movie subtitles:\n\n    python train.py\n    \n(this command will run the training on a CPU... GPU instructions are coming)\n\nTest trained trained model on a set of common questions:\n\n    python test.py\n    \nChat with trained model in console:\n\n    python chat.py\n    \nAll configuration params are stored at `tf_seq2seq_chatbot/configs/config.py`\n\n**GPU usage**\n\nIf you are lucky to have a proper gpu configuration for tensorflow already, this should do the job:\n\n    python train.py\n    \nOtherwise you may need to build tensorflow from source and run the code as follows:\n\n    cd tensorflow  # cd to the tensorflow source folder\n    cp -r ~/tf_seq2seq_chatbot ./  # copy project's code to tensorflow root\n    bazel build -c opt --config=cuda tf_seq2seq_chatbot:train  # build with gpu-enable option\n    ./bazel-bin/tf_seq2seq_chatbot/train  # run the built code\n\n**Requirements**\n\n* [tensorflow](https://www.tensorflow.org/versions/master/get_started/os_setup.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolas-ivanov%2Ftf_seq2seq_chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolas-ivanov%2Ftf_seq2seq_chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolas-ivanov%2Ftf_seq2seq_chatbot/lists"}