Giter VIP home page Giter VIP logo

macapat's Introduction

Macapat Generator

This is a simple macapat generator using Markov-Chain (Markovify)

What is Macapat?

Tembang Macapat (Macapat Song) is one type of Javanese art that combine poetry with music, advice, counsel, wisdom and a variety of Javanese philosophy of life. In addition, this song has another uniqueness, namely to be decorated with various symbols within which its meaning has to be interpreted. -- from ugm.ac.id

Macapat yaiku tembang basa Jawa sing nduweni aturan ana ing siji lan sijining jinis tembang. 
Aturan iku jenenge guru wilangan (jumlah silabel dalam satu baris) lan 
guru lagu (vokal akhir dari kalimat terakhir tiap baris)

Requirements

  • Python 3
  • Markovify

Installation

  • git clone https://github.com/lantip/macapat.git
  • cd macapat
  • If you have pipenv in your python package, simply run pipenv install
  • If you don't have pipenv, run: pip install markovify or pip3 install markovify

Usage

Notes:
Jangan lupa membuat folder ./models
$ mkdir models

$ python tembang_generator.py -h # to print help

For macapat type, you can choose one of these:
['maskumambang', 'mijil', 'sinom', 'kinanthi', 'asmarandana', 'gambuh', 'dhandhanggula', 'durma',
 'pangkur', 'megatruh', 'pocung', 'jurudemung', 'wirangrong']

catatan: jurudemung dan wirangrong masuknya sekar madya, bukan macapat

So for example, you can run:
$ python tembang_generator.py -t pocung

To generate more than one stanza, you can define the number like so:
$ python tembang_generator.py -t pocung -n 3

Thanks To

  • Paksi Raras Alit
  • Mas Bekel Setya Amrih Prasaja
  • Tim Behrend
  • sastra.org -- for the corpus
  • Wesley -- for suggestion using get

macapat's People

Contributors

dependabot[bot] avatar lantip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.