hx-markov-chain
Create, update and run Markov chain models for text generation
Last updated 4 years ago by pomber .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hx-markov-chain 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.2.0                                ...           latest (4 years ago)

3 Versions

  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |