This project implements a simple text generation algorithm using Markov Chains. The model predicts the next word based on the previous word.
- Word-level Markov Chain
- Simple and lightweight
- Beginner-friendly implementation
- Reads input text
- Builds a probability-based Markov model
- Generates new text based on learned patterns
python markov_text_generator.py
Ref: #1 Generating Text With Markov Chains https://healeycodes.com/generating-text-with-markov-chains
Ref: #2 Using a Markov Chain to Generate Readable Nonsense https://benhoyt.com/writings/markov-chain