/Markov-Chain-Based-Text-Generator

A text generator using Markov Chains written in Python.

Primary LanguagePythonMIT LicenseMIT

Markov-Chain-Based-Text-Generator

This is program generates text using a Markov Chain from some text file.

Requirements

  • Python 3

Usage

  • Clone/Download the repository
  • (Optional) Copy your source text file in text folder (source text file must be a txt file)
  • Run the textgen.py file in Python environment (terminal or an IDE)
  • Enter name of source file (the file must be stored in text folder). I have included some example text files you can use those or add your own.

Future Improvements

  • Add GUI
  • Improve Edge Matrix creation algorithm