Code Monkey home page Code Monkey logo

keinoleino's Introduction

Keinoleino

Keinoleino is an artificially intelligent poet who can write poetry in Finnish automatically. It is a computationally creative system capable of natural language generation in Finnish.

This is a refactored and updated (Python 2 to Python 3) version of the Finnish Poem Generator described in:

Hämäläinen, M. (2018). Harnessing NLG to create Finnish poetry automatically. In Proceedings of the ninth international conference on computational creativity. Association for Computational Creativity (ACC).

@inproceedings{hamalainen2018harnessing,
  title={Harnessing NLG to create Finnish poetry automatically},
  author={H{\"a}m{\"a}l{\"a}inen, Mika},
  booktitle={Proceedings of the ninth international conference on computational creativity},
  year={2018},
  organization={Association for Computational Creativity (ACC)}
}

This code used to be very much integrated with the Poem Machine and it used an old version of HFST, Syntax maker and Omorfi. I have updated the code and it should work as before.

Installation

python3 -m pip install -r requirements.txt
python3 -m keinoleino.download

Usage

To create a poem about a dog (koira), run:

from keinoleino import create_poem
print(create_poem("koira"))
>> koira, tuo vähä piski
>> miten kuuliainen on piski?
>> toivonko minä, kun piski jää ?
>> olen pikkuinen
>> vaikka piskit eivät päättäisi valikosta, sinä koittaisit piskiä
>> oletko normaali?
>> valikot ovat valikkoja

keinoleino's People

Contributors

mikahama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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