net.sf.turkey

Class Generator


public class Generator
extends java.lang.Object

The high-level generator interface. This is the class You use for text generation---it wraps all the dictionaries and settings. Just a single instance of this class exists (having more instances of it just does not make sense), You can get it by calling the getInstance() method.

Field Summary

static int
PARAGRAPHS_MAX
Maximum number of total paragraphs.
static int
PARAGRAPHS_MIN
Minimum number of total paragraphs.
static int
SENTENCES_MAX
Maximum number of sentences in a paragraph.
static int
SENTENCES_MIN
Minimum number of sentences in a paragraph.
protected ProbabilityTable
currentTable
The table used for text generation.
protected boolean
htmlOutput
Use HTML tags in the generated text?
protected static Generator
instance
The instance of Generator class.
protected int
paragraphsTotal
The total number of paragraphs.
protected static String[]
samples
The samples used for building the vocabulary.
protected int
sentencesPerPar
The number of sentences per paragraph.
protected Vector
tables
The list of available probability tables.

Constructor Summ