Markov Chains with Monty Python Dialogue given scraped movie/tv script data.
Usage: Run python3 script.py
and input # of words to be generated
Requirements:
- Python3
- Movie/TV scripts are generously provided by http://montypython.50webs.com
- Cleaned text data is stored in text file and reused after initial scraping
- 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.