{"id":23102655,"url":"https://github.com/dataxujing/xiaox","last_synced_at":"2025-08-16T14:33:00.107Z","repository":{"id":41808098,"uuid":"143323181","full_name":"DataXujing/xiaoX","owner":"DataXujing","description":"flask+seq2seq【TensorFlow1.0, Pytorch】 :art: :art: 在线聊天机器人 https://mp.weixin.qq.com/s/VpiAmVSTin3ALA8MnzhCJA 或 https://ask.hellobi.com/blog/python_shequ/14486","archived":false,"fork":false,"pushed_at":"2023-03-24T23:52:39.000Z","size":22243,"stargazers_count":68,"open_issues_count":5,"forks_count":24,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T13:22:46.491Z","etag":null,"topics":["attention","attention-mechanism","flask","nlp","python","pytorch","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/DataXujing.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":"2018-08-02T17:03:46.000Z","updated_at":"2024-04-23T07:40:30.000Z","dependencies_parsed_at":"2023-01-21T21:00:24.262Z","dependency_job_id":null,"html_url":"https://github.com/DataXujing/xiaoX","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DataXujing/xiaoX","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2FxiaoX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2FxiaoX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2FxiaoX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2FxiaoX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataXujing","download_url":"https://codeload.github.com/DataXujing/xiaoX/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2FxiaoX/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270723410,"owners_count":24634374,"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-08-16T02:00:11.002Z","response_time":91,"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","attention-mechanism","flask","nlp","python","pytorch","seq2seq","tensorflow"],"created_at":"2024-12-17T00:00:15.932Z","updated_at":"2025-08-16T14:32:59.787Z","avatar_url":"https://github.com/DataXujing.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cimg src=\"static/favo/xiaoX.ico\" align=\"right\" alt=\"logo\" height=\"180\" width=\"180\" /\u003e\n\n\n# Flask+seq2seq+redis实现在线的聊天机器人 \n\n\n徐静\n\n+ flask + redis 实现flask-SSE\n+ tensorflow训练seq2seq实现聊天机器人(语料比较少，CPU 10000词迭代周期大约训练了308分钟）\n+ 服务器+nginx+uwsgi部署\n+ virtualenv提供虚拟Python环境\n+ pip install -r requirements.txt 安装必要的Python模块\n+ python lx_bot_3.py train 训练seq2seq模型\n+ Python lx_bot_3.py pred 与机器人对话\n\n\n最终实现了线上实时的聊天机器人对话系统。\n\n\n\n\u003e 增加了Pytorch版本的Seq2Seq的训练和推断：\n\n在当前repo下的pytorch分支：\n\u003chttps://github.com/DataXujing/xiaoX/tree/pytorch\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataxujing%2Fxiaox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdataxujing%2Fxiaox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataxujing%2Fxiaox/lists"}