{ "info": { "author": "Maxwell Forbes", "author_email": "mbforbes@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6" ], "description": "# textmetrics\n\nAutomatic text metrics---BLEU, ROUGE, and METEOR, plus extras like vocab and\nngrams.\n\n## Usage\n\n```bash\n# Compares each candidate (c) separately against all references (r).\npython -m textmetrics.main c1.txt c2.txt --references r1.txt r2.txt r3.txt\n```\n\n## Installation\n\nRequires:\n- Perl (for BLEU)\n- Java 1.8 (for METEOR)\n- Python 3.6+\n\n```bash\npip install textmetrics\n```\n\n## Features\n\n- [x] BLEU\n- [x] ROUGE\n- [x] METEOR\n\n\n## Notes\n\nBLEU and METEOR use the refernce implementations (in Perl and Java,\nrespectively). We originally used the reference Perl implementation for ROUGE\nas well, but it ran so slowly that we opted for a Python reimplementation\ninstead. (ROUGE's original Perl implementation is also more difficult to setup,\neven with wrapper libraries.)\n\n## Worklist\n\n- [ ] pypi\n\n- [ ] API support\n\n- [ ] ROUGE crashes things if it decides there aren't sentences (e.g., run with\n README.md as input and reference)\n\n- [ ] Add back in orig ROUGE for completeness (place behind switch)\n\n- [ ] ngrams has divide by zero error. With two simple files (two lines each,\n same first line, differing second line) running with `2.txt --references\n 1.txt 1.txt` triggered this divide by zero\n\n- [ ] Demo for better README\n\n- [ ] Tests\n\n- [ ] Early check in each module for whether program runnable + nice error\n message (e.g., no java or bad version, no perl or bad version, etc.)\n\n\nNote to self: I followed this guide for [packaging to\npypi](https://packaging.python.org/tutorials/packaging-projects/), and future\nuploads will probably look like:\n\n```bash\n# (1) ensure tests pass\n\n# (2) bump version in setup.py\n\n# (3) commit + push to github\n\n# (4) generate distribution\npython setup.py sdist bdist_wheel\n\n# (5) Upload\ntwine upload dist/*\n```\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/mbforbes/textmetrics/", "keywords": "text-metrics text metrics nlp bleu rouge meteor ngrams vocabulary vocab", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "textmetrics", "package_url": "https://pypi.org/project/textmetrics/", "platform": "", "project_url": "https://pypi.org/project/textmetrics/", "project_urls": { "Homepage": "https://github.com/mbforbes/textmetrics/" }, "release_url": "https://pypi.org/project/textmetrics/0.0.2/", "requires_dist": [ "mypy-extensions (>=0.3.0)", "numpy (>=1.15.0)", "rouge (>=0.3.1)", "six (>=1.11.0)", "tabulate (>=0.8.2)" ], "requires_python": "", "summary": "Automatic text metrics---BLEU, ROUGE, and METEOR, pllus extras like vocab and ngrams.", "version": "0.0.2" }, "last_serial": 4142428, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "1d3605f9410b5b2007fb952fd2dae5b4", "sha256": "bc6e7388dc70250cf835d039726fc2ddbcb9485240115b21497d6d03b5cd8a1d" }, "downloads": -1, "filename": "textmetrics-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1d3605f9410b5b2007fb952fd2dae5b4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5973, "upload_time": "2018-08-07T01:10:10", "url": "https://files.pythonhosted.org/packages/1e/62/0f8a3e41ba7dee4f7f60010a2a7135c24823eb6b3311471f67d9a1ef31cc/textmetrics-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a9fbb47be8a5d0be3ac30f799fbafc94", "sha256": "cfd9eef532f3a5757c14432c0c18cc2e3d55986a4f307c1037fda2e08ac775e6" }, "downloads": -1, "filename": "textmetrics-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a9fbb47be8a5d0be3ac30f799fbafc94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5410, "upload_time": "2018-08-07T01:10:12", "url": "https://files.pythonhosted.org/packages/31/6f/9beef52de034943ed2b437fed6583283bcd0de5941e601c43e005e22e1d0/textmetrics-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "37059f43d95e10ce20500777646dc7b4", "sha256": "168ba006c86e92e172672ed85fc08564a50f2f619fd01e47d2b0b720ba7a7bf6" }, "downloads": -1, "filename": "textmetrics-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "37059f43d95e10ce20500777646dc7b4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12641, "upload_time": "2018-08-07T01:34:30", "url": "https://files.pythonhosted.org/packages/4c/64/759abdb8a35bd8fd1314cb234b29841c42077ac37d1048a7639745d69a15/textmetrics-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "94e3452ddb99c28ad5580281d8f899d1", "sha256": "f54fcccf3eb569c199969af5e006aaa2f8207ef08182f62acd954e068af92420" }, "downloads": -1, "filename": "textmetrics-0.0.2.tar.gz", "has_sig": false, "md5_digest": "94e3452ddb99c28ad5580281d8f899d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9129, "upload_time": "2018-08-07T01:34:32", "url": "https://files.pythonhosted.org/packages/86/04/7e68be0a76283471cf71a7ebb76a34ecbbcb7a729aab3a773540732b4e4e/textmetrics-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "37059f43d95e10ce20500777646dc7b4", "sha256": "168ba006c86e92e172672ed85fc08564a50f2f619fd01e47d2b0b720ba7a7bf6" }, "downloads": -1, "filename": "textmetrics-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "37059f43d95e10ce20500777646dc7b4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12641, "upload_time": "2018-08-07T01:34:30", "url": "https://files.pythonhosted.org/packages/4c/64/759abdb8a35bd8fd1314cb234b29841c42077ac37d1048a7639745d69a15/textmetrics-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "94e3452ddb99c28ad5580281d8f899d1", "sha256": "f54fcccf3eb569c199969af5e006aaa2f8207ef08182f62acd954e068af92420" }, "downloads": -1, "filename": "textmetrics-0.0.2.tar.gz", "has_sig": false, "md5_digest": "94e3452ddb99c28ad5580281d8f899d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9129, "upload_time": "2018-08-07T01:34:32", "url": "https://files.pythonhosted.org/packages/86/04/7e68be0a76283471cf71a7ebb76a34ecbbcb7a729aab3a773540732b4e4e/textmetrics-0.0.2.tar.gz" } ] }