{ "info": { "author": "Le Tuan Anh", "author_email": "tuananh.ke@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: Japanese", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Database", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Linguistic" ], "description": "Python library for manipulating Jim Breen's JMdict & KanjiDic2\n\n# Main features\n* Query JMDict and KanjiDic2 in XML format directly (but slow)\n* Convert JMDict and KanjiDic2 into SQLite format for faster access\n* Basic console lookup tool\n* jamdol (jamdict-online) - REST API using Python/Flask (jamdol-flask)\n\n# Installation\n\nHomepage: [https://github.com/neocl/jamdict](https://github.com/neocl/jamdict)\n\n```bash\npip install jamdict\n# pip script sometimes doesn't work properly, so you may want to try this instead\npython3 -m pip install jamdict\n\n# initial setup (this command will create ~/.jamdict for you\n# it will also tell you where to copy the data files\npython3 -m jamdict.tools info\n\n# to look up a word using command line\npython3 -m jamdict.tools lookup \u305f\u3079\u308b\n========================================\nFound entries\n========================================\nEntry: 1358280 | Kj: \u98df\u3079\u308b, \u55b0\u3079\u308b | Kn: \u305f\u3079\u308b\n--------------------\n1. to eat ((Ichidan verb|transitive verb))\n2. to live on (e.g. a salary)/to live off/to subsist on\n\n========================================\nFound characters\n========================================\nChar: \u98df | Strokes: 9\n--------------------\nReadings: shi2, si4, sig, sa, \uc2dd, \uc0ac, Th\u1ef1c, T\u1ef1, \u30b7\u30e7\u30af, \u30b8\u30ad, \u304f.\u3046, \u304f.\u3089\u3046, \u305f.\u3079\u308b, \u306f.\u3080\nMeanings: eat, food\nChar: \u55b0 | Strokes: 12\n--------------------\nReadings: shi2, si4, sig, \uc2dd, Th\u0103\u0323c, Th\u01b0\u0323c, T\u01b0\u0323, \u304f.\u3046, \u304f.\u3089\u3046\nMeanings: eat, drink, receive (a blow), (kokuji)\n```\n\n## Data\nXML files (JMdict_e.xml, kanjidic2.xml) must be downloaded and copy into `~/.jamdict/data`\n\nI have mirrored these files to Google Drive so you can download there too:\n[https://drive.google.com/drive/folders/1z4zF9ImZlNeTZZplflvvnpZfJp3WVLPk](https://drive.google.com/drive/folders/1z4zF9ImZlNeTZZplflvvnpZfJp3WVLPk)\n\nOfficial website\n\n* JMdict: [http://edrdg.org/jmdict/edict_doc.html](http://edrdg.org/jmdict/edict_doc.html)\n* kanjidic2: [http://www.edrdg.org/kanjidic/kanjd2index.html](http://www.edrdg.org/kanjidic/kanjd2index.html)\n* KRADFILE: [http://www.edrdg.org/krad/kradinf.html](http://www.edrdg.org/krad/kradinf.html)\n\n\n# Sample codes\n\n```python\n>>> from jamdict import Jamdict\n>>> jmd = Jamdict()\n# use wildcard matching to find anything starts with \u98df\u3079 and ends with \u308b\n>>> result = jmd.lookup('\u98df\u3079%\u308b')\n# print all found word entries\n>>> for entry in result.entries:\n... print(entry)\n...\n[id#1358280] \u305f\u3079\u308b (\u98df\u3079\u308b) : 1. to eat ((Ichidan verb|transitive verb)) 2. to live on (e.g. a salary)/to live off/to subsist on\n[id#1358300] \u305f\u3079\u3059\u304e\u308b (\u98df\u3079\u904e\u304e\u308b) : to overeat ((Ichidan verb|transitive verb))\n[id#1852290] \u305f\u3079\u3064\u3051\u308b (\u98df\u3079\u4ed8\u3051\u308b) : to be used to eating ((Ichidan verb|transitive verb))\n[id#2145280] \u305f\u3079\u306f\u3058\u3081\u308b (\u98df\u3079\u59cb\u3081\u308b) : to start eating ((Ichidan verb))\n[id#2449430] \u305f\u3079\u304b\u3051\u308b (\u98df\u3079\u639b\u3051\u308b) : to start eating ((Ichidan verb))\n[id#2671010] \u305f\u3079\u306a\u308c\u308b (\u98df\u3079\u6163\u308c\u308b) : to be used to eating/to become used to eating/to be accustomed to eating/to acquire a taste for ((Ichidan verb))\n[id#2765050] \u305f\u3079\u3089\u308c\u308b (\u98df\u3079\u3089\u308c\u308b) : 1. to be able to eat ((Ichidan verb|intransitive verb)) 2. to be edible/to be good to eat ((pre-noun adjectival (rentaishi)))\n[id#2795790] \u305f\u3079\u304f\u3089\u3079\u308b (\u98df\u3079\u6bd4\u3079\u308b) : to taste and compare several dishes (or foods) of the same type ((Ichidan verb|transitive verb))\n[id#2807470] \u305f\u3079\u3042\u308f\u305b\u308b (\u98df\u3079\u5408\u308f\u305b\u308b) : to eat together (various foods) ((Ichidan verb))\n# print all related characters\n>>> for c in result.chars:\n... print(repr(c))\n... \n\u98df:9:eat,food\n\u55b0:12:eat,drink,receive (a blow),(kokuji)\n\u904e:12:overdo,exceed,go beyond,error\n\u4ed8:5:adhere,attach,refer to,append\n\u59cb:8:commence,begin\n\u639b:11:hang,suspend,depend,arrive at,tax,pour\n\u6163:14:accustomed,get used to,become experienced\n\u6bd4:4:compare,race,ratio,Philippines\n\u5408:6:fit,suit,join,0.1\n\n# use exact matching to increase searching speed (thanks to @reem-codes)\nresult = jmd.lookup('\u98df\u3079\u308b')\n\n>>> for entry in result.entries:\n... print(entry)\n... \n[id#1358280] \u305f\u3079\u308b (\u98df\u3079\u308b) : 1. to eat ((Ichidan verb|transitive verb)) 2. to live on (e.g. a salary)/to live off/to subsist on\n```\n>>> for c in result.chars:\n... print(repr(c))\n\nSee `jamdict_demo.py` and `jamdict/tools.py` for more information.", "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/neocl/jamdict", "keywords": "nlp", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "jamdict", "package_url": "https://pypi.org/project/jamdict/", "platform": "any", "project_url": "https://pypi.org/project/jamdict/", "project_urls": { "Bug Tracker": "https://github.com/neocl/jamdict/issues", "Homepage": "https://github.com/neocl/jamdict", "Source Code": "https://github.com/neocl/jamdict/" }, "release_url": "https://pypi.org/project/jamdict/0.1a5/", "requires_dist": null, "requires_python": "", "summary": "Python library for manipulating Jim Breen's JMdict & KanjiDic2", "version": "0.1a5" }, "last_serial": 5498653, "releases": { "0.1a2": [ { "comment_text": "", "digests": { "md5": "e3174a069d7531c14906cddc2134e6dd", "sha256": "f772ea2d3cc28d0abf3475789561b8081e05d1127b3b6c1c426b0b24d86df2e4" }, "downloads": -1, "filename": "jamdict-0.1a2.tar.gz", "has_sig": false, "md5_digest": "e3174a069d7531c14906cddc2134e6dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27992, "upload_time": "2018-03-05T04:22:58", "url": "https://files.pythonhosted.org/packages/c3/c2/c8bd555b1c3824c9aab79966a09b2af4593c8662b2122b7bb2f818daf8ac/jamdict-0.1a2.tar.gz" } ], "0.1a3": [ { "comment_text": "", "digests": { "md5": "ec9b9ad08e9d227e92232fca0cbe0d3d", "sha256": "deb8d22d15caa36ecd12827f5b4443a2c557af4002c297fc1fed48f6e34ef92e" }, "downloads": -1, "filename": "jamdict-0.1a3.tar.gz", "has_sig": false, "md5_digest": "ec9b9ad08e9d227e92232fca0cbe0d3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32952, "upload_time": "2018-04-16T15:02:14", "url": "https://files.pythonhosted.org/packages/0d/85/6a554a44e38cc5bf2ddda55b79402fa04ce694d1f471e374bc273d16e06e/jamdict-0.1a3.tar.gz" } ], "0.1a4": [ { "comment_text": "", "digests": { "md5": "2a0808bb566cedd60d185a3c3c2d316d", "sha256": "855c28a60d88334222511a447dd2822fd5012eac32990ba53d0e1a400cc83795" }, "downloads": -1, "filename": "jamdict-0.1a4.tar.gz", "has_sig": false, "md5_digest": "2a0808bb566cedd60d185a3c3c2d316d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33292, "upload_time": "2018-07-19T09:44:56", "url": "https://files.pythonhosted.org/packages/ad/0d/fec495c6acfa51046020a459d77e74fe17620902bd619488595b39a8e4c5/jamdict-0.1a4.tar.gz" } ], "0.1a5": [ { "comment_text": "", "digests": { "md5": "1a09ae5e73c6b412ca990844766fc687", "sha256": "1e5d51463b6ec6da0c8a91650290831dc7437c0002cf45813d49a765de070555" }, "downloads": -1, "filename": "jamdict-0.1a5.tar.gz", "has_sig": false, "md5_digest": "1a09ae5e73c6b412ca990844766fc687", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34850, "upload_time": "2019-07-08T02:05:08", "url": "https://files.pythonhosted.org/packages/cb/7f/1d477a16ace42f124c978baa3c6e1f41c91b6dce704dc85687f0195b805d/jamdict-0.1a5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1a09ae5e73c6b412ca990844766fc687", "sha256": "1e5d51463b6ec6da0c8a91650290831dc7437c0002cf45813d49a765de070555" }, "downloads": -1, "filename": "jamdict-0.1a5.tar.gz", "has_sig": false, "md5_digest": "1a09ae5e73c6b412ca990844766fc687", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34850, "upload_time": "2019-07-08T02:05:08", "url": "https://files.pythonhosted.org/packages/cb/7f/1d477a16ace42f124c978baa3c6e1f41c91b6dce704dc85687f0195b805d/jamdict-0.1a5.tar.gz" } ] }