# ALIAS for [nessvec](gitlab.com/tangibleai/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": "nessvector",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<3.10",
"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/9f/4f/209eb2c58bebc673a3d40b790c40bc2ab00fb71642393cbc69b769df8a4c/nessvector-1.0.0.tar.gz",
"platform": null,
"description": "# ALIAS for [nessvec](gitlab.com/tangibleai/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",
"bugtrack_url": null,
"license": "AGPL3",
"summary": "Alias that redirects to nessvec",
"version": "1.0.0",
"split_keywords": [
"nlp",
"natural language processing",
"virtual assistant",
"chatbot",
"text processing",
"machine learning",
"text mining",
"deep learning"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6b34b7e14ce7a5914f6b07d8dca51824ada57a133aab48732b29803c4a37033d",
"md5": "6e6d73e6c9e7971e9b31de837e4c78d0",
"sha256": "897ce70646612ea9acd22ef2d0d670dc0789cf309a2c9ef3a7bb41654434987f"
},
"downloads": -1,
"filename": "nessvector-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6e6d73e6c9e7971e9b31de837e4c78d0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<3.10",
"size": 2201,
"upload_time": "2023-02-04T20:38:14",
"upload_time_iso_8601": "2023-02-04T20:38:14.593648Z",
"url": "https://files.pythonhosted.org/packages/6b/34/b7e14ce7a5914f6b07d8dca51824ada57a133aab48732b29803c4a37033d/nessvector-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9f4f209eb2c58bebc673a3d40b790c40bc2ab00fb71642393cbc69b769df8a4c",
"md5": "9f911bbb7b51470996b43442b6050160",
"sha256": "f877d7358e801bcc053206986b9120ce9892b63b8e9426eb18a80a2be84a5487"
},
"downloads": -1,
"filename": "nessvector-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "9f911bbb7b51470996b43442b6050160",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<3.10",
"size": 2864,
"upload_time": "2023-02-04T20:38:16",
"upload_time_iso_8601": "2023-02-04T20:38:16.467232Z",
"url": "https://files.pythonhosted.org/packages/9f/4f/209eb2c58bebc673a3d40b790c40bc2ab00fb71642393cbc69b769df8a4c/nessvector-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-04 20:38:16",
"github": false,
"gitlab": true,
"bitbucket": false,
"gitlab_user": "tangibleai",
"gitlab_project": "nessvec",
"lcname": "nessvector"
}