# nessvec
## Install from Source (recommended)
Clone the repository with all the source code and data:
```console
$ git clone git@gitlab.com:tangibleai/nessvec
$ cd nessvec
```
Create a conda environment and install the dependencies:
```console
$ conda create -n nessvec 'python==3.9.7'
$ conda env update -n nessvec -f scripts/environment.yml
$ pip install -e .
```
## Install from PyPi (only tested on Linux)
```console
$ pip install nessvec
```
## Get Started
```python
>>> from nessvec.util import load_glove
>>> w2v = load_glove()
>>> seattle = w2v['seattle']
>>> seattle
array([-2.7303e-01, 8.5872e-01, 1.3546e-01, 8.3849e-01, ...
>>> portland = w2v['portland']
>>> portland
array([-0.78611 , 1.2758 , -0.0036066, 0.54873 , -0.31474 ,...
>>> len(portland)
50
>>> from numpy.linalg import norm
>>> norm(portland)
4.417...
>>> portland.std()
0.615...
```
```
>>> cosine_similarity(seattle, portland)
0.84...
>>> cosine_similarity(portland, seattle)
0.84...
```
```python
>>> from nessvec.util import cosine_similarity
>>> cosine_similarity(w2v['los_angeles'], w2v['mumbai'])
.5
```
##
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/tangibleai/nessvec",
"name": "nessvec",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "NLP,Natural Language Processing,Virtual Assistant,chatbot,Text Processing,Machine Learning,Text Mining,Deep Learning",
"author": "Hobson Lane",
"author_email": "hobson@tangibleai.com",
"download_url": "https://files.pythonhosted.org/packages/16/57/0576b2b71d036bd2c13680199a74a775df56569aac2bc41208860ec8f16c/nessvec-0.1.14.tar.gz",
"platform": null,
"description": "# nessvec\n\n## Install from Source (recommended)\n\nClone the repository with all the source code and data:\n\n```console\n$ git clone git@gitlab.com:tangibleai/nessvec\n$ cd nessvec\n```\n\nCreate a conda environment and install the dependencies:\n\n```console\n$ conda create -n nessvec 'python==3.9.7'\n$ conda env update -n nessvec -f scripts/environment.yml\n$ pip install -e .\n```\n\n## Install from PyPi (only tested on Linux)\n\n```console\n$ pip install nessvec\n```\n\n## Get Started\n\n```python\n>>> from nessvec.util import load_glove\n>>> w2v = load_glove()\n>>> seattle = w2v['seattle']\n>>> seattle\narray([-2.7303e-01, 8.5872e-01, 1.3546e-01, 8.3849e-01, ...\n>>> portland = w2v['portland']\n>>> portland\narray([-0.78611 , 1.2758 , -0.0036066, 0.54873 , -0.31474 ,...\n>>> len(portland)\n50\n>>> from numpy.linalg import norm\n>>> norm(portland)\n4.417...\n>>> portland.std()\n0.615...\n\n```\n\n```\n>>> cosine_similarity(seattle, portland)\n0.84...\n>>> cosine_similarity(portland, seattle)\n0.84...\n\n```\n\n```python\n>>> from nessvec.util import cosine_similarity\n>>> cosine_similarity(w2v['los_angeles'], w2v['mumbai'])\n.5\n\n```\n\n##\n\n\n",
"bugtrack_url": null,
"license": "GPLv3",
"summary": "Word embeddings with meaningful dimensions for better explainability.",
"version": "0.1.14",
"project_urls": {
"Documentation": "https://gitlab.com/tangibleai/nessvec",
"Homepage": "https://gitlab.com/tangibleai/nessvec"
},
"split_keywords": [
"nlp",
"natural language processing",
"virtual assistant",
"chatbot",
"text processing",
"machine learning",
"text mining",
"deep learning"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2f95346fda2eee11fa41b4ace381cf405e656a9a3aa1600e6d3b9a504c744c19",
"md5": "0936816851b6040d78590a46c66114ff",
"sha256": "8d681013f4b1330b44b1fb3fc6655abec69b78e28d17faccd2f41fcf6f37c01f"
},
"downloads": -1,
"filename": "nessvec-0.1.14-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0936816851b6040d78590a46c66114ff",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 192728,
"upload_time": "2024-01-01T01:32:43",
"upload_time_iso_8601": "2024-01-01T01:32:43.046584Z",
"url": "https://files.pythonhosted.org/packages/2f/95/346fda2eee11fa41b4ace381cf405e656a9a3aa1600e6d3b9a504c744c19/nessvec-0.1.14-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "16570576b2b71d036bd2c13680199a74a775df56569aac2bc41208860ec8f16c",
"md5": "aa25c343ae70f665e0124c188372688a",
"sha256": "ed962f13d5d0eb58a15bc2b079cadf4e4e99cfc86d315e8e00adfe54cee64296"
},
"downloads": -1,
"filename": "nessvec-0.1.14.tar.gz",
"has_sig": false,
"md5_digest": "aa25c343ae70f665e0124c188372688a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 169292,
"upload_time": "2024-01-01T01:32:45",
"upload_time_iso_8601": "2024-01-01T01:32:45.279450Z",
"url": "https://files.pythonhosted.org/packages/16/57/0576b2b71d036bd2c13680199a74a775df56569aac2bc41208860ec8f16c/nessvec-0.1.14.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-01 01:32:45",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "tangibleai",
"gitlab_project": "nessvec",
"lcname": "nessvec"
}