|
RiTa index |
|
| Name | generateSentences() |
| Class | RiMarkov |
| Description | Generates some # (one or more) of 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:
String[] results = markov.generateSentences(10);
and
for (int i = 0; i < 10; i++) {
results[i] = markov.generateSentence();
}
The latter will create 10 sentences with no explicit relationship
between one and the next; while the former will follow probabilities
from one sentence (across a boundary) to the next. |
| Syntax | generateSentences(numSentences); |
| Returns | java.lang.String[] |
| Usage | Web & Application |
| Related | |