{"id":13488736,"url":"https://github.com/lucasjinreal/tensorflow_poems","last_synced_at":"2025-05-14T18:06:35.105Z","repository":{"id":37663123,"uuid":"84290588","full_name":"lucasjinreal/tensorflow_poems","owner":"lucasjinreal","description":"中文古诗自动作诗机器人，x炸天，基于tensorflow1.10 api，正在积极维护升级中，快star，保持更新！","archived":false,"fork":false,"pushed_at":"2024-04-07T09:10:59.000Z","size":214371,"stargazers_count":3640,"open_issues_count":23,"forks_count":938,"subscribers_count":175,"default_branch":"master","last_synced_at":"2025-04-13T10:57:50.639Z","etag":null,"topics":["lstm","poetry","rnn","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/lucasjinreal.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":"2017-03-08T07:14:45.000Z","updated_at":"2025-04-12T20:03:26.000Z","dependencies_parsed_at":"2024-06-15T00:42:48.933Z","dependency_job_id":null,"html_url":"https://github.com/lucasjinreal/tensorflow_poems","commit_stats":null,"previous_names":["jinfagang/tensorflow_poems"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasjinreal%2Ftensorflow_poems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasjinreal%2Ftensorflow_poems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasjinreal%2Ftensorflow_poems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasjinreal%2Ftensorflow_poems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasjinreal","download_url":"https://codeload.github.com/lucasjinreal/tensorflow_poems/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198514,"owners_count":22030965,"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":["lstm","poetry","rnn","tensorflow"],"created_at":"2024-07-31T18:01:20.926Z","updated_at":"2025-05-14T18:06:30.085Z","avatar_url":"https://github.com/lucasjinreal.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to LiBai AI Composer 👋\u003c/h1\u003e\n\u003cp\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-under-blue.svg?cacheSeconds=2592000\" /\u003e\n  \u003ca href=\"https://github.com/jinfagang/tensorflow_poems/#Copyright\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: Apache\" src=\"https://img.shields.io/badge/License-Apache-yellow.svg\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e An ai powered automatically generats poems in Chinese.\n\u003e\n\u003e 很久以来，我们都想让机器自己创作诗歌，当无数作家、编辑还没有抬起笔时，AI已经完成了数千篇文章。现在，这里是第一步....\n\n### 🏠 [Homepage](https://github.com/jinfagang/tensorflow_poems)\n\n## 👍 Outcome 结果\n\n阅遍了近4万首唐诗，作出：\n\n```\n龙舆迎池里，控列守龙猱。\n几岁芳篁落，来和晚月中。\n殊乘暮心处，麦光属激羁。\n铁门通眼峡，高桂露沙连。\n倘子门中望，何妨嶮锦楼。\n择闻洛臣识，椒苑根觞吼。\n柳翰天河酒，光方入胶明。\n```\n\n这诗做的很有感觉啊，这都是勤奋的结果啊，基本上学习了全唐诗的所有精华才有了这么牛逼的能力，这一般人能做到？\n本博客讲讲解一些里面实现的技术细节，如果有未尽之处，大家可以通过微信找到我，那个头像很神奇的男人。闲话不多说，先把 github 链接放上来，这个作诗机器人我会一直维护，如果大家因为时间太紧没有时间看，可以给这个项目 star 一下或者 fork，\n我一推送更新你就能看到，主要是为了修复一些 api 问题，tensorflow 虽然到了1.0，但是 api 还是会变化。\n把星星加起来，让更多人可以看到我们创造这个作诗机器人，后期会加入更多牛逼掉渣天的功能，比如说押韵等等。\n\n## 📥 Install 安装\n\n```sh\ngit clone https://github.com/jinfagang/tensorflow_poems.git\n```\n\n## 🛠 Usage 使用\n\n```sh\n# train on poems 训练\npython3 train.py\n# compose poems 作诗\npython3 compose_poem.py\n```\n\n训练的时候，你可能会看到如下：\n\nWhen you kick it off, you will see something like this:\n\n![](https://i.loli.net/2018/03/12/5aa5fd903c041.jpeg)\n\n## 📈 Updates 更新\n\n#### 2018-8-16\n\nWe are now officially announced a new project started: **StrangeAI School** - An artificial intelligence learning school and advanced algorithm exchange platform! What we believed in is: AI should made to change people's life, rather than controlled by Gaint Companies.\nHere you can get some previews about our projects: http://ai.loliloli.pro (strangeai.pro availiable soon)\n\n#### 2018-3-12\n\n**tensorflow_poems**来诈尸了，许久没有更新这个项目，不知不觉已经有了上千个star，感觉大家对这个还是很感兴趣，在这里我非常荣幸大家关注这个项目，但是我们不能因此而停止不前，这也是我来诈尸的目的。我会向大家展示一下我最新的进展，首先非常希望大家关注一下我倾心做的知乎专栏，人工智能从入门到逆天杀神以及每周一个黑科技，我们不仅仅要关注人工智能，还有区块链等前沿技术：\n\n- 人工智能从入门到逆天杀神(知乎专栏)： https://zhuanlan.zhihu.com/ai-man\n- 每周一项目黑科技-TrackTech(知乎专栏):  https://zhuanlan.zhihu.com/tracktech\n    If you want talk about AI, visit our website (for now):  http://ai.loliloli.pro (strangeai.pro availiable soon)\n     , **subscribe** our WeChat channel: 奇异人工智能学院\n\n#### 2017-11-8\n\n貌似距离上一次更新这个repo已经很久了，这段时间很多童鞋通过微信找到了我，甚至包括一些大佬。当时这个项目只是一个练手的东西，那个时候我的手法还不是非常老道。让各位踩坑了。现在**李白**强势归来。在这次的更新中增加了这些改进：\n\n- 对数据预处理脚本进行了前所未有的简化，现在连小学生都能了解了\n- 训练只需要运行train.py，数据和预训练模型都已经备好\n- 可以直接compose_poem.py 作诗，这次不会出现死循环的情况了。\n\n#### 2017-6-1 ~~可能是最后一次更新~~\n\n我决定有时间的时候重构这个项目了，古诗，源自在下骨子里的文艺之风，最近搞得东西有点乱，所以召集大家，对这个项目感兴趣的欢迎加入扣扣群：\n\n```\n 292889553\n```\n\n\n#### 2017-3-22 重磅更新，推出藏头诗功能\n\n一波小更新，下面的问题已经解决了：\n\n* 训练完成作诗时出现一直不出现的情况，实际上是陷入了一直作诗的死循环，已修复\n* 新增pretty print功能，打印出的古诗标准，接入第三方APP或者其他平台可以直接获取到标准格式的诗词\n* Ternimal disable了tensorflow默认的debug信息\n    最后最后最重要的是： **我们的作诗机器人（暂且叫李白）已经可以根据你的指定的字作诗了哦！！**\n    欢迎大家继续来踩，没有star的快star！！保持更新！！永远开源！！！\n    让我们来看看李白做的藏头诗吧：\n\n```\n# 最近一直下雨，就作一首雨字开头的吧\n雨霁开门中，山听淮水流。\n落花遍霜霰，金壶横河湟。\n年年忽息世，径远谁论吟。\n惊舟望秋月，应柳待晨围。\n人处山霜月，萧萧广野虚。\n\n# 李白人工智能作诗机器人的作者长得比较帅，以帅开头做一首吧\n帅主何幸化，自日兼春连。\n命钱犯夕兴，职馀玄赏圣。\n君有不知益，浮于但神衍。\n（浓浓的怀才不遇之风...）\n```\n\n## 👊 它已经不仅仅能够作古诗，还能模仿周杰伦创作歌词！！\n\n这是2017-03-9更新的功能，模仿周杰伦歌曲创作歌词，大家先来感受一下它创作的歌词：\n\n```\n我的你的她\n蛾眉脚的泪花\n乱飞从慌乱\n笛卡尔的悲伤\n迟早在是石板上\n荒废了晚上\n夜你的她不是她\n....\n```\n\n怎么说，目前由于缺乏训练文本，导致我们的AI做的歌词有点....额，还好啦，有那么一点忧郁之风，这个周杰伦完全不是一种风格呀。\n然而没有关系，目前它训练的文本还太少，只有112首歌，在这里我来呼吁大家一起来整理 **中国歌手的语料文本！！！**\n如果你喜欢周杰伦的歌，可以把他的歌一首一行，每首歌句子空格分开保存到txt中，大家可以集中发到我的[邮箱](mailto:jinfagang19@163.com)：\n相信如果不断的加入训练文本我们的歌词创作机器人会越来越牛逼！当然我会及时把数据集更新到github上，大家可以 star 一下跟进本项目的更新。\n\n## 👥 Authors 作者\n\n👤 **jinfagang**\n\n* Website: http://jinfagang.github.io\n* GitHub: [@JinTian](https://github.com/JinTian)\n\n👤 **William Song**\n\n- Website: http://williamzjc.gitee.io/morninglake/\n- GitHub: [@Freakwill](https://github.com/Freakwill)\n- Twitter: [@WilliamPython](https://twitter.com/WilliamPython)\n\n👤 **Harvey Dam**\n\n- GitHub: [@damtharvey](https://github.com/damtharvey)\n\n👤 **KnowsCount**\n\n- Website: http://docs.knowscount.cc/\n- GitHub: [@KnowsCount](https://github.com/KnowsCount)\n\n## 🎉 Show your support 支持\n\n如果帮助了你，给颗 🌟 罢！\n\nGive a 🌟 if this project helped you!\n\n## 📝 License 协议\n\nCopyright 版权 © 2020 \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasjinreal%2Ftensorflow_poems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasjinreal%2Ftensorflow_poems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasjinreal%2Ftensorflow_poems/lists"}