poemexe:Twitter和Mastodon上poem.exe机器人的代码

时间:2021-02-06 04:40:38
【文件属性】:
文件名称:poemexe:Twitter和Mastodon上poem.exe机器人的代码
文件大小:19KB
文件格式:ZIP
更新时间:2021-02-06 04:40:38
ruby twitter-bot twitter bots poetry 该项目已移至Sourcehut: ://git.sr.ht/~ljc/poemexe 诗 poem.exe是一个为@ 生成类似于句的小型诗歌的。 corpus目录包含带有诗词和单词列表的文本文件,以及将这些文件编译为model.json文件的Python脚本。 lib目录包含一个Ruby库,该库读取model.json文件并使用过程生成诗歌。 通过选择随机诗的第一行,另一行的第二行和另一行的第三行来构造一首诗。 这形成了1–2–3结构。 有时会使用不同的结构:例如1–2–2–3结构,其中两条中线取自两种不同的诗歌。
【文件预览】:
poemexe-master
----.rubocop_todo.yml(3KB)
----.ruby-version(6B)
----scripts()
--------test-model(427B)
--------post-twitter(1KB)
--------test-pattern(387B)
--------post-mastodon(2KB)
----lib()
--------poem_exe()
--------poem_exe.rb(1KB)
----Gemfile(343B)
----corpus()
--------compile_verses.py(4KB)
--------compile_wordlists.py(1KB)
--------compile.py(1KB)
--------wordlists()
--------sources()
--------Makefile(40B)
--------excludes.txt(40B)
--------.gitignore(24B)
----README.markdown(869B)
----LICENSE(1KB)
----.rubocop.yml(234B)
----Makefile(165B)
----Gemfile.lock(2KB)
----.gitignore(34B)

网友评论