https://github.com/treethought/markov
Simple text generation with markov chain
https://github.com/treethought/markov
Last synced: about 1 year ago
JSON representation
Simple text generation with markov chain
- Host: GitHub
- URL: https://github.com/treethought/markov
- Owner: treethought
- License: apache-2.0
- Created: 2020-11-11T03:16:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-11T03:50:30.000Z (over 5 years ago)
- Last Synced: 2025-02-06T12:48:25.199Z (over 1 year ago)
- Language: Go
- Size: 2.28 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Markov Generator
A simple tool to generate text using markov chains.
## Installation
Get the repo
```sh
git clone https://github.com/treethought/markov.git
```
Install
```sh
go install
```
## Usage
```sh
➜ markov
Text generation using markov chains
Usage:
markov [command]
Available Commands:
gen Generate markov text from corpus file
help Help about any command
Flags:
--config string config file (default is $HOME/.markov.yaml)
-h, --help help for markov
Use "markov [command] --help" for more information about a command.
```
To generate some text:
```sh
➜ markov gen resources/shakespeare.txt
exceeded all happiness Go count thee music that which they their own desert place Was this letter for women Either of
```