{ "info": { "author": "Hiroyuki Tanaka", "author_email": "aflc0x@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: Information Technology", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Text Processing" ], "description": "=====\npyter\n=====\n\npyter is a simple Translation Error Rate evaluation command.\n\nCurrentry under development state.\n\n============\nInstallation\n============\n::\n\n pip install pyter\n\nor checkout the repository::\n\n git clone git://github.com/aflc/pyter.git\n cd pyter\n pip install -e .\n\n\n=====\nUsage\n=====\n\n------------------------------\nIn Python code(Python2.x case)\n------------------------------\nimport\n\n>>> import pyter\n\nTo get a TER score, both hypothesis sentence and reference sentence have to a list of word.\n\n>>> ref = u'SAUDI ARABIA denied THIS WEEK information published in the AMERICAN new york times'.split()\n>>> hyp = u'THIS WEEK THE SAUDIS denied information published in the new york times'.split()\n>>> '%.3f' % pyter.ter(hyp, ref)\n'0.308'\n\nIf you want to use a charactor based matching, write a code like that.\n\n>>> ref = list(u\"Python\u306f\u3001\u3088\u308a\u7d20\u65e9\u304f\u3001\u52b9\u679c\u7684\u306b\u30b7\u30b9\u30c6\u30e0\u3068\u306e\u7d71\u5408\u304c\u53ef\u80fd\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\")\n>>> hyp = list(u\"Python\u306f\u3001\u3088\u308a\u8fc5\u901f\u306b\u52d5\u4f5c\u3059\u308b\u3068\u3088\u308a\u52b9\u679c\u7684\u306b\u30b7\u30b9\u30c6\u30e0\u3092\u7d71\u5408\u3067\u304d\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\")\n>>> '%.3f' % pyter.ter(hyp, ref)\n'0.357'\n\n----------------------\nCommand line interface\n----------------------\nPlease type::\n\n pyter --help\n\n\n===========\nReleaseNote\n===========\n\nv0.2.2.1\n * bugfix release\n\nv0.2.2\n * fixed #1, invalid scoreing.\n\nv0.2.1\n * New CLI interface\n * Refactoring the whole code\n * **This version is incompatible with the previous version.**\nv0.2\n * Replace normal DP based edit distance with cached version. A little performance improvement.\nv0.1.1\n * Minor fix, and register to PyPi\nv0.1\n * Initial release\n\n=======\nLicense\n=======\n\nIt is released under the MIT license.\n\n Copyright (c) 2011 Hiroyuki Tanaka\n \n Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "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/aflc/pyter", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pyter", "package_url": "https://pypi.org/project/pyter/", "platform": "any", "project_url": "https://pypi.org/project/pyter/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/aflc/pyter" }, "release_url": "https://pypi.org/project/pyter/0.2.2.1/", "requires_dist": null, "requires_python": null, "summary": "Simple library to evaluate the Translation Error Rate", "version": "0.2.2.1" }, "last_serial": 797809, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "614f416b8ec8a9356d0aa8f1255a0b58", "sha256": "2b6a3dfe12ad2ceb1530e72658ed329b2e97885011da85ac3cd84154c88207fe" }, "downloads": -1, "filename": "pyter-0.1.1.tar.gz", "has_sig": false, "md5_digest": "614f416b8ec8a9356d0aa8f1255a0b58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6442, "upload_time": "2012-01-15T03:08:28", "url": "https://files.pythonhosted.org/packages/ce/d9/259d3dac8d7fdbd1b01ab0b2ef6ecf94ff4e998ec55b2d36d6a97e8a9c9e/pyter-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "abcba0fd907f78e70dda48a2d3ee052c", "sha256": "1ed9a12766ebd0a04dcbc1a13302e685e3c2e01b478df37c3bcabb026a0f434e" }, "downloads": -1, "filename": "pyter-0.2.tar.gz", "has_sig": false, "md5_digest": "abcba0fd907f78e70dda48a2d3ee052c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5845, "upload_time": "2012-01-24T12:34:35", "url": "https://files.pythonhosted.org/packages/fd/6a/2ed776bcf946beaece3a683f619040590d79cdabecf3caac7aab1741048d/pyter-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "02b1806ad2bcc22e609fad0d94b0d8c5", "sha256": "0c7d37914fccf453648b2f0a2595743cb2461f438dd517b52a890abb44424baf" }, "downloads": -1, "filename": "pyter-0.2.1.tar.gz", "has_sig": false, "md5_digest": "02b1806ad2bcc22e609fad0d94b0d8c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6593, "upload_time": "2012-11-10T13:42:19", "url": "https://files.pythonhosted.org/packages/fc/07/25e05dbcd61bc9cf1ef05f12b93d4f722cbdb00314c4b61a31856f83c084/pyter-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "88d597ca1c9fa2852078f1a6b48d8b0d", "sha256": "4fb1d615886a9e290039e49ccc3fb676fd54e92a1cca30e546dba6b14ebbc356" }, "downloads": -1, "filename": "pyter-0.2.2.tar.gz", "has_sig": false, "md5_digest": "88d597ca1c9fa2852078f1a6b48d8b0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6640, "upload_time": "2012-12-05T11:40:55", "url": "https://files.pythonhosted.org/packages/31/bd/92a75e9abcdb67317f16152d9ed20795e538de09c0e42c69c3270f445a6b/pyter-0.2.2.tar.gz" } ], "0.2.2.1": [ { "comment_text": "", "digests": { "md5": "5102f19186bb7ae58e060d9c8f50b354", "sha256": "27a044e7bf1194e0910f775894d3f532326f18cf9705ece1280badc9bcd20b06" }, "downloads": -1, "filename": "pyter-0.2.2.1.tar.gz", "has_sig": false, "md5_digest": "5102f19186bb7ae58e060d9c8f50b354", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6639, "upload_time": "2012-12-07T10:51:11", "url": "https://files.pythonhosted.org/packages/d9/13/d0470459d4f409369cb2cd1e0c6384f756a39f8a66d68de5a96b725e3ef3/pyter-0.2.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5102f19186bb7ae58e060d9c8f50b354", "sha256": "27a044e7bf1194e0910f775894d3f532326f18cf9705ece1280badc9bcd20b06" }, "downloads": -1, "filename": "pyter-0.2.2.1.tar.gz", "has_sig": false, "md5_digest": "5102f19186bb7ae58e060d9c8f50b354", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6639, "upload_time": "2012-12-07T10:51:11", "url": "https://files.pythonhosted.org/packages/d9/13/d0470459d4f409369cb2cd1e0c6384f756a39f8a66d68de5a96b725e3ef3/pyter-0.2.2.1.tar.gz" } ] }