|
RiTa index |
|
| Name | generateSentence() |
| Class | RiMarkov |
| Description | Generates a sentence from the model. Note: multiple sentences generated by this method WILL NOT 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 | generateSentence(); |
| Returns | java.lang.String |
| Usage | Web & Application |
| Related | |