Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Text Generation with Markov Chains

This project implements a simple text generation algorithm using Markov Chains. The model predicts the next word based on the previous word.

Features

  • Word-level Markov Chain
  • Simple and lightweight
  • Beginner-friendly implementation

How It Works

  1. Reads input text
  2. Builds a probability-based Markov model
  3. Generates new text based on learned patterns

How to Run

python markov_text_generator.py

Refrences

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages