https://github.com/bdrupieski/markovchaintextgenerator
generate sentences from forum posts
https://github.com/bdrupieski/markovchaintextgenerator
awful-forums csharp markov-chain markov-text
Last synced: about 1 year ago
JSON representation
generate sentences from forum posts
- Host: GitHub
- URL: https://github.com/bdrupieski/markovchaintextgenerator
- Owner: bdrupieski
- Created: 2015-12-27T14:54:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-27T15:09:52.000Z (over 10 years ago)
- Last Synced: 2025-07-19T18:21:48.620Z (about 1 year ago)
- Topics: awful-forums, csharp, markov-chain, markov-text
- Language: C#
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a Markov Chain text generator I wrote for fun from scratch one night. I wrote it primarily to generate sentences from posts scraped from the Something Awful forums.
The design is partially inspired by [this code](https://github.com/jt-halbert/spark-workshop/blob/master/followalong-20151206.scala) from an Apache Spark workshop I attended.
The code to train a model on text and generate new sentences is in the project MarkovChainTextGeneratorModel.
The project SomethingAwfulTextGenerator scrapes specific Something Awful forum threads and trains a model on the scraped posts, then generates a file with new sentences generated from those posts. To use SomethingAwfulTextGenerator you will need to supply your own cookies in order to successfully download any HTML. The cookies sit in a git-ignored .json file in this project. Add a file to the project that looks like this with your own cookie values:
```json
{
"__cfduid": "your",
"bbuserid": "cookie",
"bbpassword": "values",
"aduserid": "go",
"__csdrc": "in",
"sessionid": "these",
"sessionhash": "properties"
}
```