Giter VIP home page Giter VIP logo

juejin_acrostic's Introduction

juejin_acrostic RNN通过训练古诗实现写藏头诗

配套文章讲解《谈谈RNN生成文本的小原理,动手实现AI写藏头诗》 https://juejin.cn/post/7257922419319291960

训练

训练必备文件:

main.py
poetry.txt

训练后会生成相关权重和数据。

仅生成

如果自己不训练,想直接使用我的权重,也提供下载地址

链接: https://pan.baidu.com/s/13cyAFooOdwYqmKT3wsygXQ?pwd=nxw4 提取码: nxw4

下载后将tf文件夹、vocab.npy文件放到main.py同级目录下。然后main.py中main方法屏蔽调训练,直接生成即可。

if __name__ == "__main__":
  # 训练
  # train()
  # 预测演示 
  print(predict("掘金社区"))

生成必备文件:

main.py
vocab.npy
tf
-- checkpoint
-- checkpoint.data-00000-of-00001
-- checkpoint.index

juejin_acrostic's People

Contributors

hlwgy avatar

Stargazers

 avatar  avatar  avatar MR.RIGHT avatar

Watchers

 avatar

Forkers

qq619433305

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.