const text = fs.readFileSync(__dirname + '/sample.txt', 'utf8');
const markov = new MarkovChain(text);
expect(markov.text).toBe(text);
const res = await markov.generate(10);
console.log(res); // 生成された文章が出力されます。
-
Notifications
You must be signed in to change notification settings - Fork 0
License
HikaruEgashira/markov
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|