Skip to content

Monty Python dialogue text-generation using Markov Chains, written in Python (oh, the irony).

License

Notifications You must be signed in to change notification settings

carson-v/MontyPython-MarkovMactation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HeaderImage

Monty Python Markov Mactation

Markov Chains with Monty Python Dialogue given scraped movie/tv script data.

Usage: Run python3 script.py and input # of words to be generated

Output Example:

ExampleOutput

Requirements:

  • Python3

Data-Scraping Features:

  • Movie/TV scripts are generously provided by http://montypython.50webs.com
  • Cleaned text data is stored in text file and reused after initial scraping

Text-Generation Features:

  • First word of every sentence, a is chosen based on the probability that a often started sentences in the test data.
  • Duplicates removed.
  • Tracks probability that a certain punctuation mark comes after a word/phrase.
  • Necessarily ends text generation on a punctuation mark.

Thanks for checking out my project!

About

Monty Python dialogue text-generation using Markov Chains, written in Python (oh, the irony).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages