Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Create, update and run Markov chain models for text generation

License

Notifications You must be signed in to change notification settings

hexacta/markov-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markov-chain Build Status npm version XO code style

Create, update and run Markov chain models for text generation.

Install

$ npm install --save hx-markov-chain

Usage

const markov = require("hx-markov-chain");
const model = markov.create();
markov.update(model, ["a", "b", "c"]);
markov.update(model, ["a", "c", "d"]);
const chain = markov.run(model);

API

markov.create()

markov.update(model, chain)

markov.run(model)

License

MIT © Hexacta

About

Create, update and run Markov chain models for text generation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published