{ "info": { "author": "Mu Yang", "author_email": "emfomy@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: Free for non-commercial use", "Natural Language :: Chinese (Traditional)", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "Introduction\n============\n\nGit\n---\n\nhttps://github.com/emfomy/ehownet\n\n|GitHub Version| |GitHub Release| |GitHub Issues|\n\n.. |GitHub Version| image:: https://img.shields.io/github/release/emfomy/ehownet/all.svg?maxAge=3600\n :target: https://github.com/emfomy/ehownet/releases\n\n.. |GitHub License| image:: https://img.shields.io/github/license/emfomy/ehownet.svg?maxAge=3600\n :target: https://github.com/emfomy/ehownet/blob/master/LICENSE\n\n.. |GitHub Release| image:: https://img.shields.io/github/release-date/emfomy/ehownet.svg?maxAge=3600\n\n.. |GitHub Downloads| image:: https://img.shields.io/github/downloads/emfomy/ehownet/total.svg?maxAge=3600\n :target: https://github.com/emfomy/ehownet/releases/latest\n\n.. |GitHub Issues| image:: https://img.shields.io/github/issues/emfomy/ckipnlp.svg?maxAge=3600\n :target: https://github.com/emfomy/ckipnlp/issues\n\n.. |GitHub Forks| image:: https://img.shields.io/github/forks/emfomy/ehownet.svg?style=social&label=Fork&maxAge=3600\n\n.. |GitHub Stars| image:: https://img.shields.io/github/stars/emfomy/ehownet.svg?style=social&label=Star&maxAge=3600\n\n.. |GitHub Watchers| image:: https://img.shields.io/github/watchers/emfomy/ehownet.svg?style=social&label=Watch&maxAge=3600\n\nPyPI\n----\n\nhttps://pypi.org/project/ehownet\n\n|PyPI Version| |PyPI License| |PyPI Downloads| |PyPI Python| |PyPI Implementation| |PyPI Status|\n\n.. |PyPI Version| image:: https://img.shields.io/pypi/v/ehownet.svg?maxAge=3600\n :target: https://pypi.org/project/ehownet\n\n.. |PyPI License| image:: https://img.shields.io/pypi/l/ehownet.svg?maxAge=3600\n :target: https://github.com/emfomy/ehownet/blob/master/LICENSE\n\n.. |PyPI Downloads| image:: https://img.shields.io/pypi/dm/ehownet.svg?maxAge=3600\n :target: https://pypi.org/project/ehownet#files\n\n.. |PyPI Python| image:: https://img.shields.io/pypi/pyversions/ehownet.svg?maxAge=3600\n\n.. |PyPI Implementation| image:: https://img.shields.io/pypi/implementation/ehownet.svg?maxAge=3600\n\n.. |PyPI Format| image:: https://img.shields.io/pypi/format/ehownet.svg?maxAge=3600\n\n.. |PyPI Status| image:: https://img.shields.io/pypi/status/ehownet.svg?maxAge=3600\n\nDocumentation\n-------------\n\nhttp://ehownet.readthedocs.io/\n\n|ReadTheDocs Home|\n\n.. |ReadTheDocs Home| image:: https://img.shields.io/website/https/ehownet.readthedocs.io.svg?maxAge=3600&up_message=online&down_message=offline\n :target: http://ehownet.readthedocs.io\n\nAuthor\n------\n\n* Mu Yang \n\nRequirements\n------------\n\n* `Python `_ 3.5+\n* `PLY (Python Lex-Yacc) `_ 3.11+\n* `TreeLib `_ 1.5.5+\n* `wcwidth `_ 0.1.7+\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install ehownet -U\n\nUsage\n=====\n\nE-HowNet Parser\n---------------\n\nSee http://ehownet.readthedocs.io/src/grammar.html for E-HowNet grammar.\n\nCLI\n^^^\n\n.. code-block:: bash\n\n # Usage\n ehn-parser [ ...]\n\n # Example\n ehn-parser \\\n \"{MusicTool|\u6a02\u5668_x:predication={own|\u6709:possession={\u6309\u9215|PushingButton:whole={x}}}}\" \\\n \"{InstitutePlace|\u5834\u6240:telic={or({experiment|\u5be6\u9a57:location={~}},{research|\u7814\u7a76:location={~}})}}\" \\\n \"TimePoint={},manner={urgent|\u6025}\"\n\nOutput:\n\n.. code-block::\n\n #1\n [Entity $x] MusicTool|\u6a02\u5668\n \u2514\u2500\u2500 [Feature] predication\n \u2514\u2500\u2500 [Entity] own|\u6709\n \u2514\u2500\u2500 [Feature] possession\n \u2514\u2500\u2500 [Entity] \u6309\u9215|PushingButton\n \u2514\u2500\u2500 [Feature] whole\n \u2514\u2500\u2500 $x\n\n #2\n [Entity] InstitutePlace|\u5834\u6240\n \u2514\u2500\u2500 [Feature] telic\n \u2514\u2500\u2500 [Entity]\n \u2514\u2500\u2500 [Function] or\n \u251c\u2500\u2500 [Entity] experiment|\u5be6\u9a57\n \u2502 \u2514\u2500\u2500 [Feature] location\n \u2502 \u2514\u2500\u2500 [TildeEntity]\n \u2514\u2500\u2500 [Entity] research|\u7814\u7a76\n \u2514\u2500\u2500 [Feature] location\n \u2514\u2500\u2500 [TildeEntity]\n\n #3\n [Root]\n \u251c\u2500\u2500 [Feature] TimePoint\n \u2502 \u2514\u2500\u2500 [AnyEntity]\n \u2514\u2500\u2500 [Feature] manner\n \u2514\u2500\u2500 [Entity] urgent|\u6025\n\n\nPython API\n^^^^^^^^^^\n\n.. code-block:: python\n\n from ehn.parse import EhnParser\n\n text = '{MusicTool|\u6a02\u5668_x:predication={own|\u6709:possession={\u6309\u9215|PushingButton:whole={x}}}}'\n\n parser = EhnParser()\n ress = parser(text, debug=False)\n for res in ress:\n print(res)\n\nOutput:\n\n.. code-block::\n\n [Entity $x] MusicTool|\u6a02\u5668\n \u2514\u2500\u2500 [Feature] predication\n \u2514\u2500\u2500 [Entity] own|\u6709\n \u2514\u2500\u2500 [Feature] possession\n \u2514\u2500\u2500 [Entity] \u6309\u9215|PushingButton\n \u2514\u2500\u2500 [Feature] whole\n \u2514\u2500\u2500 $x\n\nLicense\n=======\n\n|CC BY-NC-SA 4.0|\n\nCopyright (c) 2019 Mu Yang under the `CC-BY-NC-SA 4.0 License `_. All rights reserved.\n\n.. |CC BY-NC-SA 4.0| image:: https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png\n :target: http://creativecommons.org/licenses/by-nc-sa/4.0/", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "https://github.com/emfomy/ehownet/tarball/0.4.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/emfomy/ehownet", "keywords": "", "license": "CC-BY-NC-SA 4.0", "maintainer": "", "maintainer_email": "", "name": "ehownet", "package_url": "https://pypi.org/project/ehownet/", "platform": "linux_x86_64", "project_url": "https://pypi.org/project/ehownet/", "project_urls": { "Download": "https://github.com/emfomy/ehownet/tarball/0.4.0", "Homepage": "https://github.com/emfomy/ehownet" }, "release_url": "https://pypi.org/project/ehownet/0.4.0/", "requires_dist": null, "requires_python": "", "summary": "EHowNet Utilities", "version": "0.4.0" }, "last_serial": 5582390, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "00f7ace89c5448c9a023e49021952f05", "sha256": "d675fd893d61cbaedacdc77a88294fb0ba42c9895eea503d54792a66b9294eb8" }, "downloads": -1, "filename": "ehownet-0.1.1.tar.gz", "has_sig": false, "md5_digest": "00f7ace89c5448c9a023e49021952f05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4742, "upload_time": "2019-07-04T02:31:29", "url": "https://files.pythonhosted.org/packages/28/a2/fc6d982d4ca32d15170b4b34277ea38e527c2b6a7eba0e27afb43fb92fed/ehownet-0.1.1.tar.gz" } ], "0.2.0.post1": [ { "comment_text": "", "digests": { "md5": "94e380f338fd4c7e36f3d105e2dfba28", "sha256": "2195c253b308db266e34e8cf177bf189fe17547c2004fc2b4ff3a7320770edb3" }, "downloads": -1, "filename": "ehownet-0.2.0.post1.tar.gz", "has_sig": false, "md5_digest": "94e380f338fd4c7e36f3d105e2dfba28", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7063, "upload_time": "2019-07-25T09:42:33", "url": "https://files.pythonhosted.org/packages/d0/3b/b84bde45e732a2f745be490b0871b4c01244d86701398ec8247f275ca676/ehownet-0.2.0.post1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "a732ddefc9f6a08be119c8525d87b40f", "sha256": "9ef3f0513fd1bdb507f1df9390c4d07216a4515a9a43b2811f42bfc54cc923ab" }, "downloads": -1, "filename": "ehownet-0.4.0.tar.gz", "has_sig": false, "md5_digest": "a732ddefc9f6a08be119c8525d87b40f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10415, "upload_time": "2019-07-25T09:35:43", "url": "https://files.pythonhosted.org/packages/9f/a8/85699dc2a2c25acd3555f0014d1cdda7def42eb709bffcb42f786aa011f6/ehownet-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a732ddefc9f6a08be119c8525d87b40f", "sha256": "9ef3f0513fd1bdb507f1df9390c4d07216a4515a9a43b2811f42bfc54cc923ab" }, "downloads": -1, "filename": "ehownet-0.4.0.tar.gz", "has_sig": false, "md5_digest": "a732ddefc9f6a08be119c8525d87b40f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10415, "upload_time": "2019-07-25T09:35:43", "url": "https://files.pythonhosted.org/packages/9f/a8/85699dc2a2c25acd3555f0014d1cdda7def42eb709bffcb42f786aa011f6/ehownet-0.4.0.tar.gz" } ] }