{ "info": { "author": "Will McCutchen", "author_email": "will@mccutch.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "======\nVokram\n======\n\nVokram is a toy `Markov chain`_ library that is most likely implemented\nincorrectly and extremely inefficiently.\n\n\nInstallation\n============\n\nUse `pip`_ to install::\n\n pip install vokram\n\n\nUsage\n=====\n\nCommand Line Usage\n------------------\n\nPipe a body of text into ``vokram`` and it will generate some (hopefully)\nplausible sentences synthesized from that body of text::\n\n $ cat the_art_of_war.txt | vokram\n Spies cannot be obtained inductively from experience, nor by any danger.\n\nYou can control the maximum number of words in the output and the n-gram size\nused when building the Markov model. All command line options are given below::\n\n $ vokram --help\n\nOutputs::\n\n usage: vokram [-h] [-w NUM_WORDS] [-n NGRAM_SIZE]\n\n Generates plausible new sentences from a corpus provided on STDIN.\n\n optional arguments:\n -h, --help show this help message and exit\n -w NUM_WORDS, --num-words NUM_WORDS\n Maximum number of words in the resulting sentence.\n -n NGRAM_SIZE, --ngram-size NGRAM_SIZE\n\nLibrary Usage\n-------------\n\nVokram can also be used as a plain old Python library::\n\n >>> import vokram\n >>> corpus = open('the_art_of_war.txt')\n >>> model = vokram.build_word_model(corpus, 2)\n >>> vokram.markov_words(model, 25))\n 'Hence it is not supreme excellence; supreme excellence consists in breaking the enemy's few.'\n\n\nCredits\n=======\n\nVokram was made with inspiration from this simple and approachable\n`Python implementation and explanation`_.\n\n.. _Markov chain: http://en.wikipedia.org/wiki/Markov_chain\n.. _Python implementation and explanation: http://code.activestate.com/recipes/194364-the-markov-chain-algorithm/\n.. _pip: http://www.pip-installer.org/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mccutchen/vokram", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "vokram", "package_url": "https://pypi.org/project/vokram/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/vokram/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mccutchen/vokram" }, "release_url": "https://pypi.org/project/vokram/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "A toy Markov chain implementation.", "version": "1.0.1" }, "last_serial": 1080464, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b6e94241ac860bd1fa1540b0e40e6047", "sha256": "e9403c5b21d09fa791e03a602c83305f067e42cddc96b6069bdc6260043fa23c" }, "downloads": -1, "filename": "vokram-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b6e94241ac860bd1fa1540b0e40e6047", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5798, "upload_time": "2014-05-03T18:05:07", "url": "https://files.pythonhosted.org/packages/dd/56/6893d2521a1c2a30e861d8a81af997d9624f2e73276e32a98ce040c1692d/vokram-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "8ecd3553beaf93162594261f51be16b4", "sha256": "d2a6972a587feb47c2f8ab441a8d9814710953af8575207ff2bb82613e0c5334" }, "downloads": -1, "filename": "vokram-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8ecd3553beaf93162594261f51be16b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5969, "upload_time": "2014-05-04T15:11:46", "url": "https://files.pythonhosted.org/packages/f2/99/467a90fe6186242f2363468f51b66babe70b72e505f36cb92c4902bd6481/vokram-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8ecd3553beaf93162594261f51be16b4", "sha256": "d2a6972a587feb47c2f8ab441a8d9814710953af8575207ff2bb82613e0c5334" }, "downloads": -1, "filename": "vokram-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8ecd3553beaf93162594261f51be16b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5969, "upload_time": "2014-05-04T15:11:46", "url": "https://files.pythonhosted.org/packages/f2/99/467a90fe6186242f2363468f51b66babe70b72e505f36cb92c4902bd6481/vokram-1.0.1.tar.gz" } ] }