GithubHelp home page GithubHelp logo

hhy5277 / text-generate-rnn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stardut/text-generate-rnn

0.0 1.0 0.0 34.19 MB

**古诗生成(文本生成)

License: Apache License 2.0

Python 100.00%

text-generate-rnn's Introduction

Poetry and novel generate

Using RNN, LSTM automatically generates Chinese poetry texts.


USE

requirements

sample poetry

python sample.py
整首诗生成效果:

《擣练绯》 
噀景抱松草,清风吹颈人。皇军学夸便,和望忆皇恩。砌遍春来老,浮烟菊气长。

《瀑布交山寺肄暕院破田子游诗章二首 二》
何处花林接,伊川实遥早。李朝自二宗,设小都稍醒。乱舞何颓口,垂纶戏耳轻。武者复在宥,见使岂敢尊。

《与溧阳》 
往年南北别,守坐带蝉鸣。上迹报书叶,激然人未归。若逢南岳坑,红换夜嘉仙。

《得韦昭侍御》 
杜鹃筵豁头,忽认巴南天。阴有云斋趣,遥深愁梦梦。髫来住未得,谁屈骏鸟飞。羽檄紫人接,栖景不遑离。遽白李四子,牀余风上船。去名无真州,无复无戡情。柳色自清日,冰毫华素长。所,空木涩。乔楼块盈象,访道想斾浓。白石贫天分,深宫鹤子清。惟应意非时,有事感儒师。
藏头诗生成效果:

To do
根据上句诗完成下句诗:

To do

train

   python train.py

Poetry

Data:https://github.com/chinese-poetry/chinese-poetry

  • 5.5万首唐诗
  • 26万首宋诗
  • 2.1万首宋词
  • 唐宋两朝近1.4万古诗人
  • 两宋时期1.5K词人

reference:

If this has some help for you, star is a good reward ^-^

text-generate-rnn's People

Contributors

stardut avatar

Watchers

 avatar

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.