8000 GitHub - TheodorEmanuelsson/text_generator_py: Simple python script to generate new sentences given an input text
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

TheodorEmanuelsson/text_generator_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text_generator

A naive application that stores data on word frequencies, letter_frequencies and successor words.

text_stats.py contains function to gather the information present in an input .txt file. Optional parameter to store the results in a new .txt file.

foo@bar:~$ python3 text_stats.py <txt_file> <output_file>

generate_text.py uses the information from text_stats.py to generate text using the gathered information. It required a user-supplied starting word and the max number of words the generator should produce.

foo@bar:~$ python3 generate_text.py <txt_file> <starting_word> <max_words>

About

Simple python script to generate new sentences given an input text

Topics

Resources

License

Stars

Watchers

Forks

31D3

Releases

No releases published

Packages

No packages published

Languages

0