Git Product home page Git Product logo

haiku_rnn's Introduction

haiku_rnn

This model is based upon a Tensorflow version of Andrej Karpathy's char-rnn that was developed by Sherjil Ozair. It has been modified to work with UTF-16 files that better account for all of the characters of Japanese.

Data included are the haiku of Matsuo Basho and an incomplete set of the haiku of Kobayashi Issa. Both were members of the "Great Four" haiku masters in Japan. Issa, in particular, was especially prolific, composing over 20,000 haiku in his lifetime.

The Basho haiku are cleaned, with one haiku per line. However, Basho composed fewer than 1,000 haiku. The Issa haiku data comes from the website of Ichiro Kobayashi, of the Nagano Regional History Study Group. This data is in the process of being cleaned and split onto three lines each. In its current state, the structure of the website from which it was scraped is reflected in the predictions (as would be expected).

The model can be trained using train.py and sampled from using sample.py.

Please contact Henry Wolf if you have access to a larger corpus of East Asian poetry upon which this could be tested.

haiku_rnn's People

Contributors

aenrichus avatar

Stargazers

Dave avatar

Watchers

James Cloos avatar  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.