{ "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", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing", "Topic :: Text Processing :: Linguistic" ], "description": "YAWlib - Yet Another WordNet library for Python\n===============\n\nThis library provides interfaces to all major WordNet releases (e.g. Gloss WordNet, Open Multilingual WordNet, WordNetSQL, etc.)\n\n# Data files:\n\nWordNet 3.0 SQLite: https://sourceforge.net/projects/wnsql/files/wnsql3/sqlite/3.0/\n\nWordNet glosstag: http://wordnet.princeton.edu/glosstag.shtml\n\n## Google Drive links\n\nWordNet-3.0-SQLite.zip : https://drive.google.com/open?id=0Bwko6IfQbRUJMlN1NmdHcWNCWUk\n\nWordNet glosstag : https://drive.google.com/open?id=0Bwko6IfQbRUJVUlkNEswMldJS2s\n\n# Installation\n\nYawlib is available on PyPI\n```bash\npip install yawlib\n# or\npython3 -m pip install yawlib\n\n# Download wordnet data and extract them to ~/wordnet\n\n# Show yawlib information\npython3 -m yawlib info\n```\n\nSearch synsets by the lemma `research`, use `python3 -m yawlib lemma research`\n\n```\nwn lemma research\nLooking for synsets by term (Provided: research | pos = None)\n\n\u3014Synset\u301500636921-n \u3014Lemmas\u3015research \u3014Keys\u3015research%1:04:00::\n------------------------------------------------------------\n(def) \u201csystematic investigation to establish facts;\u201d\n\n\n\u3014Synset\u301505797597-n \u3014Lemmas\u3015inquiry; enquiry; research \u3014Keys\u3015inquiry%1:09:01:: enquiry%1:09:00:: research%1:09:00::\n------------------------------------------------------------\n(def) \u201ca search for knowledge;\u201d\n(ex) their pottery deserves more research than it has received;\n\n\n\u3014Synset\u301500648224-v \u3014Lemmas\u3015research; search; explore \u3014Keys\u3015research%2:31:00:: search%2:31:00:: explore%2:31:00::\n------------------------------------------------------------\n(def) \u201cinquire into;\u201d\n(ex) the students had to research the history of the Second World War for their history project;\n(ex) He searched for information on his relatives on the web;\n(ex) Scientists are exploring the nature of consciousness;\n\n\n\u3014Synset\u301500877327-v \u3014Lemmas\u3015research \u3014Keys\u3015research%2:32:00::\n------------------------------------------------------------\n(def) \u201cattempt to find out in a systematically and scientific manner;\u201d\n(ex) The student researched the history of that word;\n\nFound 4 synset(s)\n```\n\nNote: Extract the glosstag folder and sqlite-30.db to ~/wordnet. The directory should look like this:\n\n```\n/home/user/wordnet\n\u251c\u2500\u2500 glosstag\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 dtd\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 glosstag.dtd\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 LICENSE.txt\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 merged\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 adj.xml\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 adv.xml\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 noun.xml\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 verb.xml\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 README.txt\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 standoff\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 00\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 01\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 02\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 ....\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 index.byid.tab\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 index.bylem.adj.tab\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 index.bylem.adv.tab\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 index.bylem.noun.tab\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 index.bylem.tab\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 index.bylem.verb.tab\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 index.bysk.tab\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 statistics.tab\n\u251c\u2500\u2500 glosstag.db\n\u251c\u2500\u2500 sqlite-30.db\n\n```\n\n# Development\n\nGo to yawlib folder, execute the config script and then run wntk.sh to generate the glosstab DB file.\n```\ngit clone https://github.com/letuananh/yawlib\ncd yawlib\n\n# create virtual environment\npython3 -m venv yawlib_py3\n. yawlib_py3/bin/activate\n\n# install required packages\npip install -r requirements.txt\npip install -r requirements-optional.txt\n\n# to show information\npython -m yawlib info\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/letuananh/yawlib", "keywords": "princeton wordnet glosstag omw", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "yawlib", "package_url": "https://pypi.org/project/yawlib/", "platform": "any", "project_url": "https://pypi.org/project/yawlib/", "project_urls": { "Bug Tracker": "https://github.com/letuananh/yawlib/issues", "Homepage": "https://github.com/letuananh/yawlib", "Source Code": "https://github.com/letuananh/yawlib/" }, "release_url": "https://pypi.org/project/yawlib/0.1a2/", "requires_dist": null, "requires_python": "", "summary": "YAWLib - Yet another WordNet library for Python", "version": "0.1a2" }, "last_serial": 4081256, "releases": { "0.1a1": [ { "comment_text": "", "digests": { "md5": "8b9cf461dd1294097da8d803d231ee3f", "sha256": "650ea92fc3cf5688f48abd5711276be219b0ba3c3f77b33569b7430f3c99689b" }, "downloads": -1, "filename": "yawlib-0.1a1.tar.gz", "has_sig": false, "md5_digest": "8b9cf461dd1294097da8d803d231ee3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36192, "upload_time": "2018-04-18T04:04:12", "url": "https://files.pythonhosted.org/packages/2e/ef/1f91f104962bc5dd6865581c41933f2a72aabf4e08f144e3adc0258bf432/yawlib-0.1a1.tar.gz" } ], "0.1a2": [ { "comment_text": "", "digests": { "md5": "64aed28b9990143d481c7935b6bb76cb", "sha256": "e9b31f132654157bad63b8d81b7e8b584b19ee4fcb749a9a9582988595f41456" }, "downloads": -1, "filename": "yawlib-0.1a2.tar.gz", "has_sig": false, "md5_digest": "64aed28b9990143d481c7935b6bb76cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36439, "upload_time": "2018-07-19T09:29:02", "url": "https://files.pythonhosted.org/packages/98/5b/2a5e92113bedf33bc0687863ff677f755b1a3aa81cb5157dcc611548b91c/yawlib-0.1a2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "64aed28b9990143d481c7935b6bb76cb", "sha256": "e9b31f132654157bad63b8d81b7e8b584b19ee4fcb749a9a9582988595f41456" }, "downloads": -1, "filename": "yawlib-0.1a2.tar.gz", "has_sig": false, "md5_digest": "64aed28b9990143d481c7935b6bb76cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36439, "upload_time": "2018-07-19T09:29:02", "url": "https://files.pythonhosted.org/packages/98/5b/2a5e92113bedf33bc0687863ff677f755b1a3aa81cb5157dcc611548b91c/yawlib-0.1a2.tar.gz" } ] }