Reference

Class

RiMarkov

Name

generateTokens

Description Generates a string of 'length' tokens from the model
Syntax
generateTokens(targetNumber);
Parameters
intthe target number of tokens to generate
Returns
String[]the result
Example
rm = new RiMarkov(3);
rm.loadFrom("http://www.rednoise.org/rita/examples/data/wittgenstein.txt");
rm.generateTokens(4);
Platform Java / Javascript