Home | Trees | Indices | Help |
|
---|
|
object --+ | Generator
The class Generator
serves as a random text generator.
Random text generation is the only thing a generator object knows how to
do. See the method randomize
for details.
Local file (faster):
test = Generator() print test.randomize("alice.txt")
File on the net (slower):
test = Generator() print test.randomize("http:#www.textfiles.com/etext/FICTION/alice.txt")
See Also: #randomize(string)
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
DEPTH = 9
|
|||
OUTPUT_SIZE = 2000
|
|||
MAXIMUM_INPUT_SIZE = 100000
|
|||
MAXIMUM_DEPTH = 12
|
|||
RANDOM_SEED = None
|
|
|||
Inherited from |
|
Creates a new random text generator.
|
Returns a lengthy fragment of random text generated based on the text in the given plain text file or URL pointing to a plain text data file. (Local files work faster.) NOTE: the file pointed to by the parameter string must be a plain text file, not a Word document, HTML page or some such.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Sep 12 18:33:52 2011 | http://epydoc.sourceforge.net |