{ "info": { "author": "Jens Reidel", "author_email": "jens.reidel@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# bookgen\n\nA python library using nltk to analyse two books and generate a new one.\n\n## Installation\n\n`pip install bookgen`\n\n## Usage\n\n```py\nfrom bookgen import BookGen\n\nbook = BookGen(\"word_base_book.txt\", \"sentence_base_book.txt\")\n# book.download() will download the nltk extras required, only needed once\n\nprint(book.run())\n```\n\n## Explanation\n\nBookGen will parse word classes from the first specified book, looking like this:\n\n`{\"NOUN\": [\"Mountain\", \"Valley\"], \"VERB\": [\"take\", \"went\"]}`\n\nThese are sorted by the nltk universal tagset.\n\nThe second book serves as sentence base. It will be parsed into a list of word types that represent the whole book.\n\n`[\"NOUN\", \"VERB\", \"PREP\", \"NOUN\", \"CONJ\", \"VERB\", \".\"]`\n\nThen, it generates a list of words from the words of the first book based on the second book.\n\n`[\"Nathan\", \"went\", \"to\", \"Valley\", \"and\", \"peed\", \".\"]`\n\nThis is joined with some capitalization fixes and returned.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Gelbpunkt/bookgen", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "bookgen", "package_url": "https://pypi.org/project/bookgen/", "platform": "", "project_url": "https://pypi.org/project/bookgen/", "project_urls": { "Homepage": "https://github.com/Gelbpunkt/bookgen" }, "release_url": "https://pypi.org/project/bookgen/1.0.0/", "requires_dist": [ "nltk" ], "requires_python": "", "summary": "Generates books based on other books using nltk", "version": "1.0.0" }, "last_serial": 4682191, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "6e5bb26c7f55f729f4a2b846c1de7467", "sha256": "7a031905b168bc6050bc7f3f10e43940b537b8c1f0c53a8605ccb22e62226805" }, "downloads": -1, "filename": "bookgen-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6e5bb26c7f55f729f4a2b846c1de7467", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3920, "upload_time": "2019-01-10T18:27:14", "url": "https://files.pythonhosted.org/packages/9b/e2/da6c8dbbc666724e6d523f2dabf9546ae3ccc409ee4ab5b682173a3b1b62/bookgen-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4b8365f1f36f618bb38c0bbe400b3a27", "sha256": "326b5ec5b16c8e7884a98ef324fee3c8a3721164867a9baaf0fdcd1d7a524a48" }, "downloads": -1, "filename": "bookgen-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4b8365f1f36f618bb38c0bbe400b3a27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2708, "upload_time": "2019-01-10T18:27:17", "url": "https://files.pythonhosted.org/packages/37/3e/54cf3dfe2241bb65137b72bb280bbb33799daa20652362ea2fe05b3e7223/bookgen-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6e5bb26c7f55f729f4a2b846c1de7467", "sha256": "7a031905b168bc6050bc7f3f10e43940b537b8c1f0c53a8605ccb22e62226805" }, "downloads": -1, "filename": "bookgen-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6e5bb26c7f55f729f4a2b846c1de7467", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3920, "upload_time": "2019-01-10T18:27:14", "url": "https://files.pythonhosted.org/packages/9b/e2/da6c8dbbc666724e6d523f2dabf9546ae3ccc409ee4ab5b682173a3b1b62/bookgen-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4b8365f1f36f618bb38c0bbe400b3a27", "sha256": "326b5ec5b16c8e7884a98ef324fee3c8a3721164867a9baaf0fdcd1d7a524a48" }, "downloads": -1, "filename": "bookgen-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4b8365f1f36f618bb38c0bbe400b3a27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2708, "upload_time": "2019-01-10T18:27:17", "url": "https://files.pythonhosted.org/packages/37/3e/54cf3dfe2241bb65137b72bb280bbb33799daa20652362ea2fe05b3e7223/bookgen-1.0.0.tar.gz" } ] }