{"id":17548834,"url":"https://github.com/bradmontgomery/shaney","last_synced_at":"2025-04-24T02:10:55.942Z","repository":{"id":66911627,"uuid":"29399714","full_name":"bradmontgomery/shaney","owner":"bradmontgomery","description":"A copy of of the Mark V. Shaney markov chain.","archived":false,"fork":false,"pushed_at":"2024-09-15T19:56:24.000Z","size":26,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-18T09:34:34.321Z","etag":null,"topics":["markov-chain","python","python-script"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradmontgomery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-01-17T17:44:51.000Z","updated_at":"2024-10-30T07:51:40.000Z","dependencies_parsed_at":"2025-04-17T21:07:07.714Z","dependency_job_id":"f06f4cfe-7e2c-452e-97a6-dbe1b21156e8","html_url":"https://github.com/bradmontgomery/shaney","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmontgomery%2Fshaney","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmontgomery%2Fshaney/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmontgomery%2Fshaney/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmontgomery%2Fshaney/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradmontgomery","download_url":"https://codeload.github.com/bradmontgomery/shaney/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250546086,"owners_count":21448260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["markov-chain","python","python-script"],"created_at":"2024-10-21T02:44:48.241Z","updated_at":"2025-04-24T02:10:55.923Z","avatar_url":"https://github.com/bradmontgomery.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mark V. Shaney\n==============\n\n_SLIDES: I've given a few talks at meetups and conferences on Markov Chains,\nmost recently at DevSpace 2016. You can find [those slides on speakerdeck](https://speakerdeck.com/bkmontgomery/fun-with-markov-chains-devspace-2016)_.\n\n----\n\nThis started out as a copy of the `shaney.py` Markov Chain implementation taken\nfrom [Yisong Yue's website](http://www.yisongyue.com/shaney/).\n\nI've refactored the code a bit, but the important parts are still pretty much\nthe same. This version works with Python 3.\n\n\nThat site describes shaney as:\n\n\u003e Mark V. Shaney is a Python script which takes in a typically fairly large body\n\u003e of text and generates another [smaller] body of text which resembles the\n\u003e original, usually with hilarious side-effects. This page is a web version of\n\u003e the script for all those people fortunate enough to have never acquired a\n\u003e savviness for nerdy coding. Mark V. Shaney was first written by Bruce Ellis.\n\nAccording to comments in the file, this python script was written by Greg McFarlane\nwith some editing by Joe Strout.\n\nI've also cleaned it up a bit.\n\nUsage\n-----\n\nRun the file, and pass it a path to some training text. This should work fine\nwith a default installation of Python 3.\n\n    python shaney.py /path/to/text.txt -v\n\n\nFor additional options, run `python shaney.py -h`. Notably, this script\nimplements both a 2nd-order (the original) and 3rd-order markov chain. To\nrun the 3rd-order chain, use:\n\n    python shaney.py /path/to/text.txt -v -o 3\n\n\n\nWeb App\n-------\n\nThere's also a simple web app that will display quotes generated from training\ndata. This requires a few additional dependences (see `requirements.txt`).\n\n    pip install -r requirements.txt\n\nRun the we application with:\n\n    python web.py /path/to/text.txt\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradmontgomery%2Fshaney","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradmontgomery%2Fshaney","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradmontgomery%2Fshaney/lists"}