This repository contains an implementation of a simple text generation algorithm using Markov chains. The algorithm builds a statistical model that predicts the probability of a word or character based on the previous one(s). This model can then be used to generate new text that mimics the style and structure of the input text.
Markov chains are a type of probabilistic model that can be used for text generation. The basic idea is to model the probability of transitioning from one state (a word or character) to another based on the observed frequencies in a training corpus. This implementation focuses on generating text that resembles the input corpus by predicting the next word or character based on the current one.
To run this project, you need to have Python installed. You can install the necessary dependencies using pip:
pip install -r requirements.txt