Skip to content

uraway/markov-chain-kuromoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markov-chain-kuromoji

generates markov chain words powered by kuromoji.js

Install

npm install markov-chain-kuromoji

Dictionary path

process.env.KUROMOJI_DIC_PATH

Usage

var fs = require('fs');
var MarkovChain = require('markov-chain-kuromoji');
var markov = new MarkovChain(fs.readFileSync('sample.txt', 'utf8'));

markov.start(5, function(output) {
  console.log(output);
});

About

generates markov chain words with kuromoji.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published