{ "info": { "author": "Vishnu Menon", "author_email": "me@vishnumenon.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# PyIMS\n\nA simple python wrapper around the IMS (It Makes Sense) word-sense disambiguation toolkit, that integrates it with NLTK's WordNet interface. Requires IMS to be downloaded separately, which requires a working Java installation. Also requires NLTK with WordNet downloaded. Only tested in Linux, might not work in other OSes. Built for python 3.6+\n\n## Installation\n\nFirst, follow the instructions in [Section 3 of the IMS Readme](https://raw.githubusercontent.com/NUNLP/ims/master/README.txt) to install the components of IMS into some directory; extract the models from [here](http://www.comp.nus.edu.sg/~nlp/corpora.html#onemilwsd) (step 3.e) into the same directory as in steps 3.b and 3.c. Then, run:\n\n```\npip install pyims\n```\n\n## Usage\n\n```python\nfrom pyims import PyIMS\n\nwsd = PyIMS(\"path/to/ims\", \"modelsDirName\")\nprint(wsd.disambiguate(\"I am interested in the interest rates at the bank.\", probs=True, synsets=False))\n\n# If probs=True, returns a list of (token, probability_distribution) tuples where probability_distribution is a map of lemma to its probability\n# If probs=False (default False), returns a list of (token, lemma) where lemma is the most probable word-sense in WordNet for the given token\n# If synsets=True, lemmas are replaced with the Synsets to which they belong\n# If synsets=False (default False), to access a lemma's synset, call lemma.synset()\n```\n\n## References\n\n* Zhong, Zhi and Ng, Hwee Tou. 2010. It Makes Sense: A Wide-Coverage Word Sense Disambiguation System for Free Text. In Proceedings of the ACL 2010 System Demonstrations, pages 78--83, Uppsala, Sweden\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": "http://github.com/vishnumenon/pyims", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyims", "package_url": "https://pypi.org/project/pyims/", "platform": "", "project_url": "https://pypi.org/project/pyims/", "project_urls": { "Homepage": "http://github.com/vishnumenon/pyims" }, "release_url": "https://pypi.org/project/pyims/0.1.2/", "requires_dist": [ "nltk" ], "requires_python": "", "summary": "A python wrapper for the IMS Word Sense Disambiguation tool (Zhong and Ng, 2010)", "version": "0.1.2" }, "last_serial": 3902248, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "47d5e2decfa6e4eff467ecb0595ffb96", "sha256": "a6db2e4a58b3191ca7e2cb48a927a629135d06c07b3b2653cd026e23c9e959f2" }, "downloads": -1, "filename": "pyims-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "47d5e2decfa6e4eff467ecb0595ffb96", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2964, "upload_time": "2018-05-21T02:17:12", "url": "https://files.pythonhosted.org/packages/12/88/b2632f69f8ca398fee892693efcdd4f4a252d180e1286af84901003e64eb/pyims-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e3aca4d0b16c654a2e5dc66da8c9d274", "sha256": "073a1b24f67892bfe5d70a06393ca5f34100af0b9d325321cd7dee93584c7e4f" }, "downloads": -1, "filename": "pyims-0.1.tar.gz", "has_sig": false, "md5_digest": "e3aca4d0b16c654a2e5dc66da8c9d274", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2747, "upload_time": "2018-05-21T02:17:13", "url": "https://files.pythonhosted.org/packages/e1/30/ad7d377a2378e73c716ccf0e7ac80cc78aea8c4d626c042da3349405ae63/pyims-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4c51bfe8c6c3dfdcc3990c8c1fb7803c", "sha256": "bf8f94342ca80b1e21a026239161a23d8a5f1c301bd9281ae59e87db1c3b918e" }, "downloads": -1, "filename": "pyims-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4c51bfe8c6c3dfdcc3990c8c1fb7803c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3039, "upload_time": "2018-05-22T20:24:43", "url": "https://files.pythonhosted.org/packages/b8/20/15da33da471bb2509a2b3994ccb625646b44a96222a6ce70602040d90901/pyims-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "222e7aaa89c8a42ae2e0535479dabddb", "sha256": "b177c2c12fd8c6b8b7d4288c65f3a5174b22661dc2a80af95601b318eeac810a" }, "downloads": -1, "filename": "pyims-0.1.1.tar.gz", "has_sig": false, "md5_digest": "222e7aaa89c8a42ae2e0535479dabddb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2806, "upload_time": "2018-05-22T20:24:45", "url": "https://files.pythonhosted.org/packages/63/28/d9d36d01ea76e72113ce4fcf2823674d6a09823835984e78541d2ff8e1af/pyims-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "3432fb349799f6c28486dbb95617beff", "sha256": "744a99c641c2bcf32400cba199cfadb270fe74b91d1cefe2a8348671443f122e" }, "downloads": -1, "filename": "pyims-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "3432fb349799f6c28486dbb95617beff", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3253, "upload_time": "2018-05-26T23:14:29", "url": "https://files.pythonhosted.org/packages/e9/32/29387c5383e8aabc755e72cfc00e317ad563e22bf8baba7eb20dfbc5375f/pyims-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8ca70aac5a7a1b9e7856df7f71f904bc", "sha256": "d7487d6f86f8d1be55488a7eddb794a6d62bed13c5c3d4bc5c8241cbdc5677ef" }, "downloads": -1, "filename": "pyims-0.1.2.tar.gz", "has_sig": false, "md5_digest": "8ca70aac5a7a1b9e7856df7f71f904bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3013, "upload_time": "2018-05-26T23:14:32", "url": "https://files.pythonhosted.org/packages/7f/79/9e9b11d2513ec52edf43c0c9d6c72cc8e981c71aaea30a27ec9af230b6aa/pyims-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3432fb349799f6c28486dbb95617beff", "sha256": "744a99c641c2bcf32400cba199cfadb270fe74b91d1cefe2a8348671443f122e" }, "downloads": -1, "filename": "pyims-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "3432fb349799f6c28486dbb95617beff", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3253, "upload_time": "2018-05-26T23:14:29", "url": "https://files.pythonhosted.org/packages/e9/32/29387c5383e8aabc755e72cfc00e317ad563e22bf8baba7eb20dfbc5375f/pyims-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8ca70aac5a7a1b9e7856df7f71f904bc", "sha256": "d7487d6f86f8d1be55488a7eddb794a6d62bed13c5c3d4bc5c8241cbdc5677ef" }, "downloads": -1, "filename": "pyims-0.1.2.tar.gz", "has_sig": false, "md5_digest": "8ca70aac5a7a1b9e7856df7f71f904bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3013, "upload_time": "2018-05-26T23:14:32", "url": "https://files.pythonhosted.org/packages/7f/79/9e9b11d2513ec52edf43c0c9d6c72cc8e981c71aaea30a27ec9af230b6aa/pyims-0.1.2.tar.gz" } ] }