ritajs-v2
ritajs-v2 copied to clipboard
Error: No valid sentence-starts remaining. RiMarkov.
I installed Rita through Node. After running the following code in my rita.js file on terminal, it shows a lot of data and says Error: No valid sentence-starts remaining. I am trying to generate text, this code is similar to the reference code which also has this issue.
var rita= require('rita');
var inputText= 'The blue bus drove by a crowded street. All the children were singing. It was a great bus ride.';
var markov= new rita.markov(5)
markov.addText(inputText)
var sentences= markov.generate(2);
console.log(sentences)
can you add a link to the reference code you are referring to?
can you add a link to the reference code you are referring to?
https://rednoise.org/rita/reference/RiTa/markov/index.html