Class |
RiMarkov |
||||
---|---|---|---|---|---|
Name |
generate |
||||
Description | Generates one or more sentences from the model. Note: multiple sentences generated by this method will follow the model across sentence boundaries; thus the following two calls are not equivalent: results = markov.generate(10);and for (int i = 0; i < 10; i++) { The latter will create 10 sentences with no explicit relationship between one and the next; while the former will follow probabilities from one sentence to the next. . |
||||
Example |
rm = new RiMarkov(3); |
||||
Parameters |
|
||||
Returns |
|
||||
Syntax |
generate(num); |
||||
Platform | Java / JavaScript | ||||