Code Monkey home page Code Monkey logo

markov-chain's Introduction

Markov chain

An implementation of a word-based order-1 markov chaim in Kotlin.

This chain can be trained on any english or english-like texts. After enough training the chain can generate its owm random phrases based on the connections between words it's learnt during the training.

The chain can be serialized (saved) and then deserialized (loaded) without any losses.

Structure

There are two subprojecta:

  • core - the library itself
  • examples - currently contains one example project using the chain. The example downloads N random extracts from Wikipedia™, trains a markov chain on them and then generates random phrases.

But why?

Well... I was just sitting and minding my own buisiness when my brain suddenly thought: "i must create a markov chain and use it in my discord bot"! And now here i am, writing this text at 4:06 AM after finishing the project. Help me.

markov-chain's People

Contributors

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