ritajs-v2 icon indicating copy to clipboard operation
ritajs-v2 copied to clipboard

Error: No valid sentence-starts remaining. RiMarkov.

Open Ish7R opened this issue 1 year ago • 2 comments

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)

Ish7R avatar Aug 15 '22 17:08 Ish7R

can you add a link to the reference code you are referring to?

dhowe avatar Aug 16 '22 03:08 dhowe

can you add a link to the reference code you are referring to?

https://rednoise.org/rita/reference/RiTa/markov/index.html

Ish7R avatar Aug 16 '22 16:08 Ish7R