npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

hx-markov-chain

1.2.0 • Public • Published

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

install

npm i hx-markov-chain

Downloadsweekly downloads

0

version

1.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability