{ "info": { "author": "Christopher Chen", "author_email": "christopher.chen1995@gmail.com", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "Originally a proof of concept, I've used this in enough projects that\nI've decided to publish it tomake it easier to import. The name is a\nplay on words similar to Markup/Markdown. Hey, I'm funny sometimes,\n\nBasic Use\n=========\n\nUse the included ``from_sentences()`` and ``from_words()`` if your data\nalready behaves nicely. These methods return a ``Markov`` object which\nis the workhorse of this whole thing. Your input sequences of words or\nsentences should be delimited by newlines. Use ``next_word()`` and\n``next_sentence()`` to generate your desired forat of output.\n\nAdvanced Use\n============\n\nInstantiate with ``m = markoff.Markov(seeds)`` where ``seeds`` is an\niterable of sub-iterables. That could be a list of lists of words or\nletters if you want to emulate the functionality of ``from_sentences()``\nand ``from_words()``. Each sub-iterable being a chain in the set of\nchains you want to model.\n\nYou can supply it with just one chain or many.\n\nThen use ``m.generate(max_length=100)`` to produce a single chain\nlimited to ``max_length`` automatically terminating at known ending\nstate (usually a word ending with punctuation).\n\nExamples\n========\n\nDon't forget to begin with ``import pymarkoff`` ## Generating Sentences\n##\n\nInput\n~~~~~\n\n::\n\n m = pymarkoff.from_sentences(\n \"\"\"The quick brown fox jumped over the lazy dog.\n Jack and Jill ran up the hill to fetch a pail of water.\n Whenever the black fox jumped the squirrel gazed suspiciously.\"\"\"\n )\n\n print([m.next_sentence() for i in range(10)])\n\nOutput\n~~~~~~\n\n::\n\n [\n 'The quick brown fox jumped over the black fox jumped the lazy dog.',\n 'The quick brown fox jumped the squirrel gazed suspiciously.',\n 'Whenever the squirrel gazed suspiciously.',\n 'Jack and Jill ran up the lazy dog.',\n 'Jack and Jill ran up the hill to fetch a pail of water.',\n 'Jack and Jill ran up the black fox jumped the hill to fetch a pail of water.',\n 'Whenever the lazy dog.',\n 'The quick brown fox jumped over the lazy dog.',\n 'Jack and Jill ran up the hill to fetch a pail of water.',\n 'Jack and Jill ran up the squirrel gazed suspiciously.'\n ]\n\nGenerating Words\n----------------\n\nInput\n~~~~~\n\n::\n\n seeds = \"\"\"Ana\n Bastion\n D.Va\n Genji\n Hanzo\n Junkrat\n L\u00facio\n McCree\n Mei\n Mercy\n Pharah\n Reaper\n Reinhardt\n Roadhog\n Soldier: 76\n Symmetra\n Torbj\u00f6rn\n Tracer\n Widowmaker\n Winston\n Zarya\n Zenyatta\"\"\"\n\n brain = pymarkoff.from_words(mystr)\n print([brain.next_word() for i in range(10)])\n\nOutput\n~~~~~~\n\n::\n\n ['Zen', 'D.Vaperein', 'Za', 'To', 'Merya', 'Metrdo', 'So', 'Junj\u00f6r', 'Ph', 'Mera']\n\nMore advanced use\n=================\n\nThe ``Markov.feed()`` method can be used to add more data into the model\nof a ``Markov`` object. This lets you add sentences or words one at a\ntime, if you want.\n\nNotes\n=====\n\nThis module is still under development and is mostly for me to play\naround with and learn Markov Chains. Cheers.\n", "description_content_type": null, "docs_url": null, "download_url": "https://bitbucket.org/TheCDC/pymarkoff/get/HEAD.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/TheCDC/pymarkoff", "keywords": "markov chain model generator", "license": "Public Domain", "maintainer": "", "maintainer_email": "", "name": "pymarkoff", "package_url": "https://pypi.org/project/pymarkoff/", "platform": "", "project_url": "https://pypi.org/project/pymarkoff/", "project_urls": { "Download": "https://bitbucket.org/TheCDC/pymarkoff/get/HEAD.zip", "Homepage": "https://bitbucket.org/TheCDC/pymarkoff" }, "release_url": "https://pypi.org/project/pymarkoff/0.4.6/", "requires_dist": null, "requires_python": "", "summary": "A simple Markov chain modeller and generator for word and sentence generation.", "version": "0.4.6" }, "last_serial": 2468159, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "fda60c1e5393125c983b500ca85a5a78", "sha256": "ec6126cc9dcb816fee8c30ab9e301ceea66974638a204badc28fb5f6d75d184b" }, "downloads": -1, "filename": "pymarkoff-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fda60c1e5393125c983b500ca85a5a78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3188, "upload_time": "2016-07-31T06:04:43", "url": "https://files.pythonhosted.org/packages/8c/37/d2d4650112c36beae5b1146007c5bae1f5fb7942cd7ee037370b215b2526/pymarkoff-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "af710334e1ddb9082432f2890dfa3fa2", "sha256": "a0b359e5ace33a8e8b76ca9f45ade9e4040ed16b5f316f5f1ad7d2d80ff6fa25" }, "downloads": -1, "filename": "pymarkoff-0.1.1.tar.gz", "has_sig": false, "md5_digest": "af710334e1ddb9082432f2890dfa3fa2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3277, "upload_time": "2016-07-31T06:14:05", "url": "https://files.pythonhosted.org/packages/91/94/03d666b367d9ea774a72b5b16d962247e76f5ad3bb32bbff46f99a370e83/pymarkoff-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "3580c47cffe1f6d6a3e697ae7b70f524", "sha256": "71838966ad5d88f4242625278eaba1089de3598feef5747b280cc41adbf95a06" }, "downloads": -1, "filename": "pymarkoff-0.1.2.tar.gz", "has_sig": false, "md5_digest": "3580c47cffe1f6d6a3e697ae7b70f524", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3073, "upload_time": "2016-07-31T06:24:04", "url": "https://files.pythonhosted.org/packages/42/3f/3db480a4ad016b168f42dfb3fdb619f9444ec95ed1ad4c5fbb7390523e5b/pymarkoff-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "b8b7e9604bd46261eaa1667bc52d3604", "sha256": "3f9d696257fd4a444dcbd95d072f17e41913ff57c33e6e697dc52adddfbd9207" }, "downloads": -1, "filename": "pymarkoff-0.1.3.tar.gz", "has_sig": false, "md5_digest": "b8b7e9604bd46261eaa1667bc52d3604", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2799, "upload_time": "2016-07-31T07:18:17", "url": "https://files.pythonhosted.org/packages/b5/7f/18a6480b98fafbc6c19a805911b7a682072867e976405d5602b616ef458d/pymarkoff-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "ed863582d1e423651cb292dab18d43a3", "sha256": "61359200e84727363757786e4e3f4ba86141619aabfb9d0723bee6b6dd71b1cb" }, "downloads": -1, "filename": "pymarkoff-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ed863582d1e423651cb292dab18d43a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3433, "upload_time": "2016-07-31T07:19:01", "url": "https://files.pythonhosted.org/packages/78/b1/773e6c60e09ae94d10df0fbe3556312fd6a5fec518d7f05d1f1502c1b50a/pymarkoff-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "c130d9dd46f57ce0d5e405dce2af1cc7", "sha256": "1c019fcdad703edf105d840a01299d8ab0303d5070538fad7594339178d956d7" }, "downloads": -1, "filename": "pymarkoff-0.2.1.tar.gz", "has_sig": false, "md5_digest": "c130d9dd46f57ce0d5e405dce2af1cc7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3460, "upload_time": "2016-07-31T07:25:11", "url": "https://files.pythonhosted.org/packages/e3/d6/d464889255ba8a3da1d51bd3c472e0139680b517b9199f65a57765f1507b/pymarkoff-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "be347bc5c0a9d65282ee985f01bad96f", "sha256": "86c681e16a6eab4d609c62fdbe7907fde2bee8f280bcca39543adcdde5f684d0" }, "downloads": -1, "filename": "pymarkoff-0.2.2.tar.gz", "has_sig": false, "md5_digest": "be347bc5c0a9d65282ee985f01bad96f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3464, "upload_time": "2016-08-04T03:02:32", "url": "https://files.pythonhosted.org/packages/f2/2f/fb2eef9b6193932c8d357e4e7162237973a34e104c70f4b2a86f1944f9af/pymarkoff-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "93d2b9d8c1f84773dd5815416bd9dd46", "sha256": "b5ea2ed55adb49b2be483a46f5843c9372145ea4733694963861a63f465f7ac7" }, "downloads": -1, "filename": "pymarkoff-0.2.3.tar.gz", "has_sig": false, "md5_digest": "93d2b9d8c1f84773dd5815416bd9dd46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3449, "upload_time": "2016-08-08T04:08:12", "url": "https://files.pythonhosted.org/packages/3d/e4/51c47b6378e160628037810da0c35a3d591d1e8507b6a8412ceb68b27604/pymarkoff-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "c10bafaed0eafb0ee34f53eaddbe530c", "sha256": "16c959e2cda45f2bf103faec9d09dec9f08a6e4bf84f758c5372c3d168c70db7" }, "downloads": -1, "filename": "pymarkoff-0.2.4.zip", "has_sig": false, "md5_digest": "c10bafaed0eafb0ee34f53eaddbe530c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6484, "upload_time": "2016-08-16T18:25:52", "url": "https://files.pythonhosted.org/packages/48/4a/8009f381438514c6dd119a5afc6d10f01f345710816359c989028d114fa7/pymarkoff-0.2.4.zip" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "f8586258252f9fd41cf1d41964517389", "sha256": "0601b2e02c08886efea972e50097846ec9d69a2b100e9789deefc9a5791526a5" }, "downloads": -1, "filename": "pymarkoff-0.2.5.zip", "has_sig": false, "md5_digest": "f8586258252f9fd41cf1d41964517389", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6484, "upload_time": "2016-08-16T18:32:25", "url": "https://files.pythonhosted.org/packages/96/56/a37037048367438cb8504b6ce874a3e460e966af2e0d3f82d25798f9b0ec/pymarkoff-0.2.5.zip" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "ea7cd25eea43d6e1d6304c8238fc5c45", "sha256": "9fdacad4c726c4093e35bfef6f0126a23dea1e7e114c1ac3dc8f0a59409da088" }, "downloads": -1, "filename": "pymarkoff-0.3.1.zip", "has_sig": false, "md5_digest": "ea7cd25eea43d6e1d6304c8238fc5c45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6785, "upload_time": "2016-08-29T05:02:02", "url": "https://files.pythonhosted.org/packages/89/bc/0bf4191902c985b1756975bb5519441a4ac4406c19279742fefad46b8176/pymarkoff-0.3.1.zip" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "b869e3dc2817fddba900670ad60224c3", "sha256": "5dc9467cf6e9bf3476c109ef4531f71536ff73ff6df98bd40fd7361533da00c7" }, "downloads": -1, "filename": "pymarkoff-0.3.2.zip", "has_sig": false, "md5_digest": "b869e3dc2817fddba900670ad60224c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6862, "upload_time": "2016-08-29T05:13:21", "url": "https://files.pythonhosted.org/packages/d6/3e/30633211d8f5c667d3cc87fb9641a023065c0365a16f348fe0930d6386ed/pymarkoff-0.3.2.zip" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "f502fd4bd130a1b4d245564bf9fc4b30", "sha256": "d9bd9d983e4ee1b63acf83f5410dcf31a92ffe6bf95b7d69c8aee898d064815f" }, "downloads": -1, "filename": "pymarkoff-0.3.3.tar.gz", "has_sig": false, "md5_digest": "f502fd4bd130a1b4d245564bf9fc4b30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4540, "upload_time": "2016-09-14T08:12:12", "url": "https://files.pythonhosted.org/packages/b1/69/6876f2330a8170809922bdb1369317bba7c3e58aa47ba8e55ef849e2ecda/pymarkoff-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "e0816c36470aff8e3cf0e9000e1aeb75", "sha256": "66be42c3ff3c777a2d8eece632beae811c175a6a972b2c62a3f4d230532162d7" }, "downloads": -1, "filename": "pymarkoff-0.3.4.tar.gz", "has_sig": false, "md5_digest": "e0816c36470aff8e3cf0e9000e1aeb75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4712, "upload_time": "2016-09-22T17:27:58", "url": "https://files.pythonhosted.org/packages/ac/2a/18a5c10b7531fd31a483c4092ab6dc693be8f1ecfe1225479e8f51cd6b13/pymarkoff-0.3.4.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "9cb222330a8c35af472d2da0be19b239", "sha256": "829987617578a553b5053b90660f1b0833e2209bdd84cfadb52e9a11d562c823" }, "downloads": -1, "filename": "pymarkoff-0.4.0.tar.gz", "has_sig": false, "md5_digest": "9cb222330a8c35af472d2da0be19b239", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5547, "upload_time": "2016-09-26T07:12:43", "url": "https://files.pythonhosted.org/packages/f7/ce/e6cf6969e3a35dd7941338c494d53efa3ff7e9f860c9b555d158e651ae64/pymarkoff-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "e62cb0531dee84033d563b8d39b3d14a", "sha256": "bf851be66fb9ae904bcc47be7ee7daed006e314d0786bea6637a7666c42e2bc4" }, "downloads": -1, "filename": "pymarkoff-0.4.1.tar.gz", "has_sig": false, "md5_digest": "e62cb0531dee84033d563b8d39b3d14a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5518, "upload_time": "2016-09-26T07:15:08", "url": "https://files.pythonhosted.org/packages/a1/69/31a9bd2dd1e3e16eb8d54c008f5118a3a1e74611830e9e7cd8eb0d823899/pymarkoff-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "045ec2efeb05e60e1600253d84347b19", "sha256": "a7f3ee26bb7f6855357e733e78e4139d82c2d6a5f836a8860ac0b9a0944b8399" }, "downloads": -1, "filename": "pymarkoff-0.4.2.tar.gz", "has_sig": false, "md5_digest": "045ec2efeb05e60e1600253d84347b19", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5718, "upload_time": "2016-09-26T16:53:40", "url": "https://files.pythonhosted.org/packages/8d/2d/97131f18a272adc402ba173664a9c734f64bb0222302646ecee0ec065b5f/pymarkoff-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "ef3f8054a7ac4f17d9ee5febe1888c57", "sha256": "14e600460931696fd0f12f5ab438fbd6735addadaf996d60c6a7809d16f03ce7" }, "downloads": -1, "filename": "pymarkoff-0.4.3.tar.gz", "has_sig": false, "md5_digest": "ef3f8054a7ac4f17d9ee5febe1888c57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5728, "upload_time": "2016-11-08T00:56:36", "url": "https://files.pythonhosted.org/packages/55/d5/d3aa9ef4b54028001cf62daa01924941b372199df974884e0a1c72edece8/pymarkoff-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "9dc54c92889b2cbcff648863b735ef2c", "sha256": "6589ba696a44a3aaed9a1a67856fdc98b535a90e8bf92c95da14db3cb4e1b84c" }, "downloads": -1, "filename": "pymarkoff-0.4.4.tar.gz", "has_sig": false, "md5_digest": "9dc54c92889b2cbcff648863b735ef2c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5889, "upload_time": "2016-11-10T01:19:26", "url": "https://files.pythonhosted.org/packages/7c/85/7f7559d4911436621d76ea1387bc5e339cf3296e1128a9b978db9f2cb1e6/pymarkoff-0.4.4.tar.gz" } ], "0.4.5": [ { "comment_text": "", "digests": { "md5": "59f7c95320a52f4864a3c869b5dc98f1", "sha256": "d8efe7f23e36359224dd747e923de1840c0de05fa0ecc471cbaa8652c94fa075" }, "downloads": -1, "filename": "pymarkoff-0.4.5.tar.gz", "has_sig": false, "md5_digest": "59f7c95320a52f4864a3c869b5dc98f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6057, "upload_time": "2016-11-13T22:05:10", "url": "https://files.pythonhosted.org/packages/53/11/54ab579d8cf5de9129a6c590a3167cffb9c025e9f1125839a4ca179b0370/pymarkoff-0.4.5.tar.gz" } ], "0.4.6": [ { "comment_text": "", "digests": { "md5": "30778842c8c0978787090cc9e29c2af0", "sha256": "c1b7d52ae3fd8670ccfb80310e56f8ae5ed23dd5611384ba81be173f019d06e5" }, "downloads": -1, "filename": "pymarkoff-0.4.6.tar.gz", "has_sig": false, "md5_digest": "30778842c8c0978787090cc9e29c2af0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6211, "upload_time": "2016-11-18T09:43:06", "url": "https://files.pythonhosted.org/packages/a1/e6/6742b9427ea0d18d23087af69a8d2ca657b681210ac5dd7d19c856202821/pymarkoff-0.4.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "30778842c8c0978787090cc9e29c2af0", "sha256": "c1b7d52ae3fd8670ccfb80310e56f8ae5ed23dd5611384ba81be173f019d06e5" }, "downloads": -1, "filename": "pymarkoff-0.4.6.tar.gz", "has_sig": false, "md5_digest": "30778842c8c0978787090cc9e29c2af0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6211, "upload_time": "2016-11-18T09:43:06", "url": "https://files.pythonhosted.org/packages/a1/e6/6742b9427ea0d18d23087af69a8d2ca657b681210ac5dd7d19c856202821/pymarkoff-0.4.6.tar.gz" } ] }