akj2018 / Text_Generation_using_Markov_Chain

Text Generation using Markov Chain in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text Generation

Text Generation using Markov Chain in Python

alt text

Description

1. Take input data stored in a .txt file
2. Build Transition Table
3. Convert the transition table into probabilities
4. Train our model on the input data
5. Generate new text using the model

Usage:

  • Simple and effective way for generating new text.
  • Also, can be used as a way to autocomplete text

Installing

  • Download Anaconda Installer for Mac/Windows/Linux and install with Path Environment Variable

Executing program

  1. Download the Simple Markov Chain Text Generator.ipynb on your system
  2. Run the following command in the download location on cmd jupyter-notebook "Simple Markov Chain Text Generator.ipynb"
  3. Run the cells in Jupyter notebook

Authors

Akshay Jain

Future Updates

  • Integrate live chat data for realtime processing
  • Add GUI
  • Added autocomplete functionality for suggestions while searching

References

  • Youtube
  • Google

About

Text Generation using Markov Chain in Python


Languages

Language:Jupyter Notebook 100.0%