{ "info": { "author": "Tan Nguyen", "author_email": "livw08@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# ais-wordnet-sim\n\n___\n\n### Install\n\n```\npip install ais-wordnet-sim\n```\n___\n\n### Usage\n\n#### Get list of similar sentences\n\nGet a list which contains similar sentences (include original sentence)\n\n```python\nfrom ais_wordnet_sim import similar_sentences\nsentence = 'Th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng \u00e2m m\u01b0u g\u00ec'\n# default limit = 1000\nresult = similar_sentences(sentence, limit=5)\nresult\n\n>>> ['th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng \u00e2m m\u01b0u g\u00ec', 'th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng th\u1ee7 \u0111o\u1ea1n g\u00ec', 'th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng m\u01b0u k\u1ebf g\u00ec', 'th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng m\u01b0u m\u1eb9o g\u00ec', 'th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng m\u01b0u m\u00f4 g\u00ec']\n```\n\n### Create a category\n\nCreate a Category: `{ question_list, answer ,topic }` from a question and an answer\n\n```python\nfrom ais_wordnet_sim import generate_category\nquestion = 'Th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng \u00e2m m\u01b0u g\u00ec'\nanswer = '\u00c2m m\u01b0u ph\u00e1 ho\u1ea1i nh\u00e0 n\u01b0\u1edbc'\n# default limit = 1000\ngenerate_category(question, answer, topic, limit=5)\n```\n\n### Get all categories\n\nGet all Categories generated in database\n\n```python\nfrom ais_wordnet_sim import get_category_data\nresult = get_category_data()\nresult\n\n>>> [{'_id': ObjectId('5d86f35b944d00e06eb3a76b'), 'question_list': ['th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng \u00e2m m\u01b0u g\u00ec', 'th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng th\u1ee7 \u0111o\u1ea1n g\u00ec', 'th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng m\u01b0u k\u1ebf g\u00ec', 'th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng m\u01b0u m\u1eb9o g\u00ec', 'th\u1ebf l\u1ef1c th\u00f9 \u0111ich c\u00f3 nh\u1eefng m\u01b0u m\u00f4 g\u00ec'], 'answer': '\u00c2m m\u01b0u ph\u00e1 ho\u1ea1i nh\u00e0 n\u01b0\u1edbc'}]\n```\n\n### Create Synonyms database from excel file\n\nNote: Drop old database before creating new database\n\nExample Exel format:\n- Sheet: n, a, v, r, e\n- Each row of sheet: one or multiple words, synonyms words follow original word\n\n```python\nfrom ais_wordnet_sim import add_synonyms_excel\nfile = 'wordnet.xlsx'\nadd_synonyms_excel(file)\n```\n\n### Enrich AIML File\n\nCreate an enriched AIML file from original AIML file\n\n```python\nfrom ais_wordnet_sim import aiml_enrich\naiml_enrich('original.aiml', 'enriched.aiml')\n```\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": "https://https://github.com/liv1n9/ais-wordnet-sim", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "ais-wordnet-sim", "package_url": "https://pypi.org/project/ais-wordnet-sim/", "platform": "", "project_url": "https://pypi.org/project/ais-wordnet-sim/", "project_urls": { "Homepage": "https://https://github.com/liv1n9/ais-wordnet-sim" }, "release_url": "https://pypi.org/project/ais-wordnet-sim/2.0.0/", "requires_dist": [ "underthesea", "pymongo", "dnspython", "xlrd" ], "requires_python": "", "summary": "AIS Wordnet tool", "version": "2.0.0" }, "last_serial": 5883837, "releases": { "1.4": [ { "comment_text": "", "digests": { "md5": "78bffbfb1541e45fa0cc7c420af9f00f", "sha256": "8caa55e531d3de670c6c81ee2bb155f69b389803f62540f5b8534a9c10e59f38" }, "downloads": -1, "filename": "ais_wordnet_sim-1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "78bffbfb1541e45fa0cc7c420af9f00f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7706, "upload_time": "2019-09-22T06:29:43", "url": "https://files.pythonhosted.org/packages/0b/87/061f8843b1065b1b55fdc1018e460148ba97e21695c7d06127fff28779b6/ais_wordnet_sim-1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "356b1e4b93d43967b414ea4fccea0877", "sha256": "b0a73eadf85988df5673f7c466c81117f3a6f4909fc530e4f8239eb45f3d6e4a" }, "downloads": -1, "filename": "ais-wordnet-sim-1.4.tar.gz", "has_sig": false, "md5_digest": "356b1e4b93d43967b414ea4fccea0877", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4869, "upload_time": "2019-09-22T06:29:45", "url": "https://files.pythonhosted.org/packages/c6/e1/59086a981193d14619b3f93fbd4384dfa9ec2d144fff5ad98557d4b93752/ais-wordnet-sim-1.4.tar.gz" } ], "1.5": [ { "comment_text": "", "digests": { "md5": "ce86c2e5c0606341e73e5364be2a4d9a", "sha256": "2e0a97c34bdb5e8e3e7d4045f7c1002bdc149a29771d31bbfc7a938272e34d7b" }, "downloads": -1, "filename": "ais_wordnet_sim-1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "ce86c2e5c0606341e73e5364be2a4d9a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8326, "upload_time": "2019-09-24T04:52:13", "url": "https://files.pythonhosted.org/packages/e8/6b/fcad996ece56af51836ffbac2f5e6c3fcc1d4f38c643ec980e6937e8605c/ais_wordnet_sim-1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "92d4d60d1ea1f5c39d7f87ca2de24f44", "sha256": "89f920cd8498ca69441e2f619edc66027754605bc5a9fab8bb8a5bffd9ed65ac" }, "downloads": -1, "filename": "ais-wordnet-sim-1.5.tar.gz", "has_sig": false, "md5_digest": "92d4d60d1ea1f5c39d7f87ca2de24f44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4885, "upload_time": "2019-09-24T04:52:14", "url": "https://files.pythonhosted.org/packages/d0/b2/4974aaab8ddf5840d587ea097a3409891200e82b70b6b33a1936bc770bd2/ais-wordnet-sim-1.5.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "32842be992913bf19286ead07df628bf", "sha256": "01b05701d699619a73f7cfc1f369eccef471243a082290db573ca810ac429000" }, "downloads": -1, "filename": "ais_wordnet_sim-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "32842be992913bf19286ead07df628bf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8392, "upload_time": "2019-09-25T08:29:26", "url": "https://files.pythonhosted.org/packages/4b/0e/f11c5722259090c0a7cc3284b1d98204702be40e1db86de87fc14aee7815/ais_wordnet_sim-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cdda327d2ee1a8a59e35a7a99a696f18", "sha256": "7b0931da1363fea1428e8e528488ddb1681c6adec0dfdaa70678c9a489ad1531" }, "downloads": -1, "filename": "ais-wordnet-sim-2.0.0.tar.gz", "has_sig": false, "md5_digest": "cdda327d2ee1a8a59e35a7a99a696f18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4917, "upload_time": "2019-09-25T08:29:29", "url": "https://files.pythonhosted.org/packages/8f/69/ed5ec153b707bc68b22e08efa75b374d6921be2e88643cc38b508741f54d/ais-wordnet-sim-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "32842be992913bf19286ead07df628bf", "sha256": "01b05701d699619a73f7cfc1f369eccef471243a082290db573ca810ac429000" }, "downloads": -1, "filename": "ais_wordnet_sim-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "32842be992913bf19286ead07df628bf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8392, "upload_time": "2019-09-25T08:29:26", "url": "https://files.pythonhosted.org/packages/4b/0e/f11c5722259090c0a7cc3284b1d98204702be40e1db86de87fc14aee7815/ais_wordnet_sim-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cdda327d2ee1a8a59e35a7a99a696f18", "sha256": "7b0931da1363fea1428e8e528488ddb1681c6adec0dfdaa70678c9a489ad1531" }, "downloads": -1, "filename": "ais-wordnet-sim-2.0.0.tar.gz", "has_sig": false, "md5_digest": "cdda327d2ee1a8a59e35a7a99a696f18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4917, "upload_time": "2019-09-25T08:29:29", "url": "https://files.pythonhosted.org/packages/8f/69/ed5ec153b707bc68b22e08efa75b374d6921be2e88643cc38b508741f54d/ais-wordnet-sim-2.0.0.tar.gz" } ] }