hx-markov-chain
v1.2.0
Published
Create, update and run Markov chain models for text generation
Downloads
11
Maintainers
Readme
markov-chain
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