An open API service indexing awesome lists of open source software.

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

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
```