{ "info": { "author": "Aaron Halfaker, Sumit Asthana", "author_email": "ahalfaker@wikimedia.org, asthana.sumit23@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "# Draft topic\n\nPredicting topics to new drafts based on Wikiprojects on English Wikipedia.\n\n## Setting up\n\nMake sure to have a working python3 environment.\nInstall requirements using:\n\n```\npip install -r requirements\n```\n\nInstall the library using:\n\n```\npython setup.py install\n```\n\n## Generating machine-readable WikiProjects data\n\nUse the following utility from root directory to generate machine-readable WikiProjects data:\n\n```\n./utility fetch_wikiprojects --output \n```\n\n## Generating mid-level category to WikiProjects mapping\n\nUse the following utility from root directory to generate a mapping of high-level topic categories to list of WikiProjects contained in them:\n\n```\n./utility trim_wikiprojects --wikiprojects wp --output outmid\n```\n\n## Labeling a list of page-ids with the wikiprojects and mid-level categories each page belongs to\n\nUse the following utility from root directory to label a list of page-ids with the wikiprojects and the mid-level categories the page belongs to.\n\n```\n./utility fetch_page_wikiprojects --api-host=https://en.wikipedia.org/ --input=wikiproject_page_ids.json --output=enwiki.labeled_wikiprojects.json --mid_level_wp=outmid.json --verbose\n```\n\nIn above, the input to the script should be a json containing a list of\nobservations, each observation having a **page\\_id: \\** mapping.\nAdditionally also pass the mid-level wikiprojects json for the script to\ngenerate wikiprojects to mid-level categories mapping. The script augments the\ngiven list with the mentioned fields, writing them to a new file specified by\n**\"output\"**\n\n## Generating predictions for a set of page-ids on Wikipedia\n\nFor generating topic predictions for a set of revision-ids, download the relevant model and use revscoring's [score](https://github.com/wikimedia/revscoring/blob/master/revscoring/utilities/score.py) API\nto generate predictions. Note that the revision-ids need to be in a file with a format specified by the API. Use the revision ID of the most recent revision for a page to get a good prediction.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wikimedia/drafttopic", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "drafttopic", "package_url": "https://pypi.org/project/drafttopic/", "platform": "", "project_url": "https://pypi.org/project/drafttopic/", "project_urls": { "Homepage": "https://github.com/wikimedia/drafttopic" }, "release_url": "https://pypi.org/project/drafttopic/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "A library for automatic detection of topics of new drafts on Wikipedia based on WikiProjects.", "version": "0.2.0" }, "last_serial": 5722915, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "f3048f34fe4ed4a2f922597d035d2341", "sha256": "2e13d1b970822d41be15528c9b3c49e70cba317f925caba6ea8392a88a0ebd16" }, "downloads": -1, "filename": "drafttopic-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f3048f34fe4ed4a2f922597d035d2341", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21792, "upload_time": "2019-08-13T18:37:37", "url": "https://files.pythonhosted.org/packages/a3/4f/91c2867d4914aa04d9e7cd7f9c8a828a7c4fbd738447b904da7a0e55f2a7/drafttopic-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8b1af70cbf83f2e2dfeb2addd7f4c7d3", "sha256": "66d7f7e7bc4497418d88e3300beba531ee92b7f0ea68da8169381a00bd5758f5" }, "downloads": -1, "filename": "drafttopic-0.1.1.tar.gz", "has_sig": false, "md5_digest": "8b1af70cbf83f2e2dfeb2addd7f4c7d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14951, "upload_time": "2019-08-13T18:37:40", "url": "https://files.pythonhosted.org/packages/98/4b/735af926dbd8ac436f98fcdda9d12082e5e50d317bd9b2750774ffe97069/drafttopic-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "0850a88a9418cb8fe8966c2c1d4cdfa2", "sha256": "1f5edbee6e3266d95545cb6757e34b0b88e1b5921c02e49ca5b74af84ca85b2e" }, "downloads": -1, "filename": "drafttopic-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0850a88a9418cb8fe8966c2c1d4cdfa2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22073, "upload_time": "2019-08-23T21:41:09", "url": "https://files.pythonhosted.org/packages/f0/be/fbc0033a1f9ee79e6e1840cc1405def19746624c3989a965a1355f5da92a/drafttopic-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "239bd0193091c3f737322ec985c3993d", "sha256": "3d0787ec7f6d406850015139a72884127e3c46a0007329646b7fbdc867dad713" }, "downloads": -1, "filename": "drafttopic-0.2.0.tar.gz", "has_sig": false, "md5_digest": "239bd0193091c3f737322ec985c3993d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15147, "upload_time": "2019-08-23T21:41:11", "url": "https://files.pythonhosted.org/packages/1f/07/87daa75cdae33b7991689382ce1e640be42cae565f21aa7f4b0f99fc5b18/drafttopic-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0850a88a9418cb8fe8966c2c1d4cdfa2", "sha256": "1f5edbee6e3266d95545cb6757e34b0b88e1b5921c02e49ca5b74af84ca85b2e" }, "downloads": -1, "filename": "drafttopic-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0850a88a9418cb8fe8966c2c1d4cdfa2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22073, "upload_time": "2019-08-23T21:41:09", "url": "https://files.pythonhosted.org/packages/f0/be/fbc0033a1f9ee79e6e1840cc1405def19746624c3989a965a1355f5da92a/drafttopic-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "239bd0193091c3f737322ec985c3993d", "sha256": "3d0787ec7f6d406850015139a72884127e3c46a0007329646b7fbdc867dad713" }, "downloads": -1, "filename": "drafttopic-0.2.0.tar.gz", "has_sig": false, "md5_digest": "239bd0193091c3f737322ec985c3993d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15147, "upload_time": "2019-08-23T21:41:11", "url": "https://files.pythonhosted.org/packages/1f/07/87daa75cdae33b7991689382ce1e640be42cae565f21aa7f4b0f99fc5b18/drafttopic-0.2.0.tar.gz" } ] }