Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

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

{
  "__cfduid": "your",
  "bbuserid": "cookie",
  "bbpassword": "values",
  "aduserid": "go",
  "__csdrc": "in",
  "sessionid": "these",
  "sessionhash": "properties"
}

About

generate sentences from forum posts

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.