Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reesporte/markov
markov chain text generator
https://github.com/reesporte/markov
go markov python
Last synced: about 4 hours ago
JSON representation
markov chain text generator
- Host: GitHub
- URL: https://github.com/reesporte/markov
- Owner: reesporte
- Created: 2021-06-02T21:10:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-11T19:08:59.000Z (over 3 years ago)
- Last Synced: 2024-10-13T14:10:47.193Z (about 1 month ago)
- Topics: go, markov, python
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# markov
use a markov chain to generate quotes from any `words.txt` file you put in here
## usage
set up a `words.txt` file with the training material you want to use, then run
```
python3 python/char/level.py
```or
```
python3 python/word/level.py
```or
```
go run go/char/level.go
```or
```
go run go/word/level.go
```## example output
I personally like the character level one better bc it likes to get inventive with words, but the word level one is there for completenessHere's some example output from the character level one:
> T to show off, once again, it's abou t book, Helen Keller said: "Optimis. But do you know what I year old, he read a book by Hele real reason I keep this Lamboreal reason I keep this that it can happen faster than't have a college degree. I had no opponaire Warren Be an opthat you can implement today, he said...that when he book a day- you know I read a bou know what I like a lot more year old, he read more tha mong ago that out and buy Do today. So click that chage, just bought t I had to get instad to get installed, the whole 2000 it can happen faster than you think ifor somebody else". DON'T LISTEN! Don't listend they showed me what THEY did- tound FIVE mentors. And thad to get installed, the whobile home, with only $47 in to be true, they aren Buffet says: "The more you learn, ther where you are. Now, this is Lamborghini video, it's actually wasn't that lionaire Warren Buffet says: "The good life: health, just bou
And from the word level one:
> The knowledge. The real reason I keep this Lamborghini here in a little video, it's a reminder. A reminder that long ago that long ago that I didn't have to drive up here is that it's about how I keep this is mine. True story. And another mentor. And a few more mentors later I was in a little video,
## note
it's essentially the same code in the go and python directories, i just wanted to try writing it in go too