{ "info": { "author": "Nadezda Katricheva, Alyaxey Yaskevich, Anastasiya Lisitsina, Tamara Zhordaniya, Andrey Kutuzov, Elizaveta Kuzmenko", "author_email": "andreku@ifi.uio.no", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Visualization", "Topic :: Utilities" ], "description": "# vec2graph\nMini-library for producing graph visualizations from embedding models\n\nCode is available at https://github.com/lizaku/vec2graph\n\n# Usage\n\n`pip install vec2graph`\n\n`from vec2graph import visualize`\n\n`visualize(OUTPUT_DIR, MODEL, WORD, depth=0, topn=10, threshold=0, edge=1, sep=False, library=\"web\")`\n\n### Example\n\n`model = gensim.models.KeyedVectors.load_word2vec_format('googlenews300.bin', binary=True)`\n\n`visualize('tmp/graphs', model, 'apple')`\n\n### Required arguments\n\n- **OUTPUT_DIR** is the directory to store your visualizations\n- **MODEL** is a word embedding model loaded with Gensim\n- **WORD** is your query (single word or list of the words: `['apple', 'pear']`). If in the model PoS-tag is attached to the word, it shoul be written explicitly: `'apple_NOUN'`\n\n### Optional arguments\n\n- **depth**: *integer, default 0* \n depth to which the algorithm has to drill down into the relations of semantic neighbours (the higher this number is, the deeper the recursion, which means that it produces visualizations for the neighbours of the neighbours of the query word). \n- **topn**: *integer, default 10* \n the number of neighbors to extract for each word\n- **threshold**: *float, default 0* \n the value from which we start drawing edges between nodes. By default the fully connected graph is produced.\n- **edge**: *integer, default 1* \n the width of edges in the graph\n- **sep**: *bool, default False* \n if this parameter is used, token is split by a separator (underscore), and only first part is shown in visualization (E.g. it is useful when PoS is attached to a word - `'apple_NOUN'`).\n- **library**: *str, default 'web'* \n the path to D3.js library, can be 'web' (link to version at the D3.js site) or 'local' (file in the directory with generated HTML, if not present, it is downloaded from web).\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://github.com/lizaku/vec2graph", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "vec2graph", "package_url": "https://pypi.org/project/vec2graph/", "platform": "", "project_url": "https://pypi.org/project/vec2graph/", "project_urls": { "Homepage": "https://github.com/lizaku/vec2graph" }, "release_url": "https://pypi.org/project/vec2graph/0.3.0/", "requires_dist": [ "gensim (>3.5)", "smart-open (>1.8)", "requests" ], "requires_python": ">=3", "summary": "Mini-library for producing graph visualizations from embedding models", "version": "0.3.0" }, "last_serial": 5537414, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "f8d901ecf745b877cb6c4b0474fd336a", "sha256": "aef3b26faa63fb8c10cfdb5d61261f441c242010bd1b4c6e0e549de9c08ec9e3" }, "downloads": -1, "filename": "vec2graph-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "f8d901ecf745b877cb6c4b0474fd336a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4499, "upload_time": "2019-06-30T12:14:18", "url": "https://files.pythonhosted.org/packages/30/1c/beb9c813ce1fcbe5c91b646e9aad9d932a15397ef3a4fde12fb5a0e94e4a/vec2graph-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d14dd7a7e0dd3524f6ebe68bd7a4342a", "sha256": "6b641e14a9ec87fd058455af5a08b38c6899a6e0a0e4e414651824545e57224a" }, "downloads": -1, "filename": "vec2graph-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d14dd7a7e0dd3524f6ebe68bd7a4342a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3207, "upload_time": "2019-06-30T12:14:20", "url": "https://files.pythonhosted.org/packages/7e/c2/fffa86d77496e467ab6e0c23c9dd64d8155edec586653206b056dbc8e2ea/vec2graph-0.0.2.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3b633dfe1602d3366ca6c75ad00f047d", "sha256": "e592c894dcc0cfd5e9a3ec24d0418965ee61a9fcf24cd2471303158e77d2b729" }, "downloads": -1, "filename": "vec2graph-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3b633dfe1602d3366ca6c75ad00f047d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 6453, "upload_time": "2019-06-30T12:26:32", "url": "https://files.pythonhosted.org/packages/68/98/ae8113af58d1f8f1e26c4775a529c7d3ea3df2e993e821904830777ccd1f/vec2graph-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2ba45a5031545372ec0d2082611be7d", "sha256": "e973bf6e61af634b8ca6d5a74fc2a08128aeafc120f2f28563a60e689d8560f0" }, "downloads": -1, "filename": "vec2graph-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b2ba45a5031545372ec0d2082611be7d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4795, "upload_time": "2019-06-30T12:26:34", "url": "https://files.pythonhosted.org/packages/5d/0c/ce58b4277f25d065ece7342e6063429475f1072d7f7a34ac36d3714e7a8e/vec2graph-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "10685742496510cf51aee832e5809ea5", "sha256": "06f7a3f58b91324686b7bed3fcfbd9a8dac1caba6306c7340caeb396bf358653" }, "downloads": -1, "filename": "vec2graph-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "10685742496510cf51aee832e5809ea5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 6477, "upload_time": "2019-06-30T12:34:45", "url": "https://files.pythonhosted.org/packages/04/96/30b8841eac89f49f21f33120814d78082d8ec4db6faddb6e6721708ef16c/vec2graph-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "839684dbede191786923e547e5292d6b", "sha256": "f434517515d12464603d95d7f26bc4112042910550eb174238d05534cb600e64" }, "downloads": -1, "filename": "vec2graph-0.1.2.tar.gz", "has_sig": false, "md5_digest": "839684dbede191786923e547e5292d6b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4801, "upload_time": "2019-06-30T12:34:48", "url": "https://files.pythonhosted.org/packages/14/9b/ae0dd434b210deaa4369d74e04b6a853d083b42e27f5bd217bf57f4d6e77/vec2graph-0.1.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "f87090f46291c457cb29f25c9f7ec87f", "sha256": "a67cfab28b842a1763e45e99508276a12840841c5023fa93acc79f3af347b242" }, "downloads": -1, "filename": "vec2graph-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f87090f46291c457cb29f25c9f7ec87f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8418, "upload_time": "2019-06-30T13:02:31", "url": "https://files.pythonhosted.org/packages/96/4c/4e7c67607de81a4a3d134d9e6df65b6b99e2998517eaef872a83324d64b3/vec2graph-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9307e45be78813df87f2b0e4b712848e", "sha256": "68b88f096079a82c0a99a8b0bf187464dcaabe77e69d89aa6f0644cea870ec19" }, "downloads": -1, "filename": "vec2graph-0.2.1.tar.gz", "has_sig": false, "md5_digest": "9307e45be78813df87f2b0e4b712848e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4893, "upload_time": "2019-06-30T13:02:34", "url": "https://files.pythonhosted.org/packages/1e/7f/82996428f9430b72af1c8b6e9e773a1375eab99604efa3974abea6daa685/vec2graph-0.2.1.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "86c4f3f18f65bd72797a5e68ff22310e", "sha256": "96b8e489c4f90ada5382674a2cff4c61c3b9edeb7e757cd61f4e8cf648380e86" }, "downloads": -1, "filename": "vec2graph-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "86c4f3f18f65bd72797a5e68ff22310e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8622, "upload_time": "2019-06-30T13:10:56", "url": "https://files.pythonhosted.org/packages/c0/46/1b04b309db019e6b12683d14a694f6e4bec53d4f28c3a45d091c01d86b71/vec2graph-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "19ab557b6169cff29f788f2811eb8f38", "sha256": "e7a9295d1066dd2848a951e407932f2a7fd60f4d18e3243ffcace8870062c4d9" }, "downloads": -1, "filename": "vec2graph-0.2.3.tar.gz", "has_sig": false, "md5_digest": "19ab557b6169cff29f788f2811eb8f38", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5136, "upload_time": "2019-06-30T13:11:00", "url": "https://files.pythonhosted.org/packages/4e/a5/b18c891272ce0abd61a3dcd6806cba6f9797ae8febada98eff40aa45477a/vec2graph-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "5f2109545b5d2706ba7d2679c9a343d7", "sha256": "3ed0119c8284f26777595e41274b100b5f276e07e6e3505d450e567f0da0323e" }, "downloads": -1, "filename": "vec2graph-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "5f2109545b5d2706ba7d2679c9a343d7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8643, "upload_time": "2019-06-30T17:24:13", "url": "https://files.pythonhosted.org/packages/c6/a7/bdcd3ab28a21ec88679875632f1ffea958991f04a6296e6a51e638a0e294/vec2graph-0.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e0a7bd1c3f5b42760af7d32a6c779857", "sha256": "620d5468a8763228085ab92ee7ff6b7081fea0f689787c67314d889cd6741d22" }, "downloads": -1, "filename": "vec2graph-0.2.4.tar.gz", "has_sig": false, "md5_digest": "e0a7bd1c3f5b42760af7d32a6c779857", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5148, "upload_time": "2019-06-30T17:24:19", "url": "https://files.pythonhosted.org/packages/5b/c3/f242c8ed2de575ae15bb06f131f3229b6673b2c3367db88397a6f3d798e0/vec2graph-0.2.4.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "60b2ea500de2cd44168eecf6207d49ed", "sha256": "16dab170deb8d891c31fee94c0961ea047c3972f0e758d17dca9a3b79e918428" }, "downloads": -1, "filename": "vec2graph-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "60b2ea500de2cd44168eecf6207d49ed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8502, "upload_time": "2019-07-15T22:43:26", "url": "https://files.pythonhosted.org/packages/25/bf/45db06130554f4b35478c5989be745fa251114ba280cac04ba3ee0932396/vec2graph-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9ce9a852d21dd9961b67f8bf0050d0e7", "sha256": "1c1c702a20da5cf3c2d38eacaadd1400ea81dbd0ccdefeaf7a785b07e1f6e6af" }, "downloads": -1, "filename": "vec2graph-0.3.0.tar.gz", "has_sig": false, "md5_digest": "9ce9a852d21dd9961b67f8bf0050d0e7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5713, "upload_time": "2019-07-15T22:43:33", "url": "https://files.pythonhosted.org/packages/ad/82/2a4adecca8cb2075fc7aa584357ad6eb79bde3e4d81b56935113e15d35a0/vec2graph-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "60b2ea500de2cd44168eecf6207d49ed", "sha256": "16dab170deb8d891c31fee94c0961ea047c3972f0e758d17dca9a3b79e918428" }, "downloads": -1, "filename": "vec2graph-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "60b2ea500de2cd44168eecf6207d49ed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8502, "upload_time": "2019-07-15T22:43:26", "url": "https://files.pythonhosted.org/packages/25/bf/45db06130554f4b35478c5989be745fa251114ba280cac04ba3ee0932396/vec2graph-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9ce9a852d21dd9961b67f8bf0050d0e7", "sha256": "1c1c702a20da5cf3c2d38eacaadd1400ea81dbd0ccdefeaf7a785b07e1f6e6af" }, "downloads": -1, "filename": "vec2graph-0.3.0.tar.gz", "has_sig": false, "md5_digest": "9ce9a852d21dd9961b67f8bf0050d0e7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5713, "upload_time": "2019-07-15T22:43:33", "url": "https://files.pythonhosted.org/packages/ad/82/2a4adecca8cb2075fc7aa584357ad6eb79bde3e4d81b56935113e15d35a0/vec2graph-0.3.0.tar.gz" } ] }