https://github.com/juanmanuelramallo/markov-phrases
Generating tweets using a markov chain
https://github.com/juanmanuelramallo/markov-phrases
Last synced: 3 months ago
JSON representation
Generating tweets using a markov chain
- Host: GitHub
- URL: https://github.com/juanmanuelramallo/markov-phrases
- Owner: juanmanuelramallo
- Created: 2019-09-02T04:07:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-06T06:47:26.000Z (over 2 years ago)
- Last Synced: 2025-01-10T09:42:36.823Z (4 months ago)
- Language: Ruby
- Homepage: https://markov-phrases.herokuapp.com/CNN
- Size: 210 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Markov phrases
Simple web app using rack to respond http requests and a Markov chain implementation in ruby to generate tweets by a given user. Markov learning is done using twitter api and stored in yml files.
### Getting started
- Install ruby 2.6.3
- Install [bundler](https://bundler.io/)
- Install [foreman](http://ddollar.github.io/foreman/)
- `bundle install`
- `foreman start`You'll get the app up and running.
### Training Markov chains
Look at the `./bin/train` script. It uses the object `Phrases::Tasks::Training` to build a markov chain.
### Disclaimer
This is just for fun 🙈