# 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": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"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/59/d3/054c905eb1404311a8f23022e5c1df209fa48b6b97a40c2a378164b57448/nessvec-0.1.16.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.16",
"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": "49666b1c13ed2c8c414d31656cf655161689632d001ce45a2399c6fef2eacbca",
"md5": "534d53f5d6bfd45026f94a12d72cd9d1",
"sha256": "35b28cb0ef873c83479b469a47547d05882dce0e1d5cd2b05539b4dc1ce75010"
},
"downloads": -1,
"filename": "nessvec-0.1.16-py3-none-any.whl",
"has_sig": false,
"md5_digest": "534d53f5d6bfd45026f94a12d72cd9d1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 192748,
"upload_time": "2024-06-02T03:29:32",
"upload_time_iso_8601": "2024-06-02T03:29:32.078585Z",
"url": "https://files.pythonhosted.org/packages/49/66/6b1c13ed2c8c414d31656cf655161689632d001ce45a2399c6fef2eacbca/nessvec-0.1.16-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "59d3054c905eb1404311a8f23022e5c1df209fa48b6b97a40c2a378164b57448",
"md5": "f2f140db89336c7eba193a189f3d015d",
"sha256": "8e435a4c116f8878b959120e385a8103bb76db7cb01d21ae3432e0a9482f4338"
},
"downloads": -1,
"filename": "nessvec-0.1.16.tar.gz",
"has_sig": false,
"md5_digest": "f2f140db89336c7eba193a189f3d015d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 169164,
"upload_time": "2024-06-02T03:29:33",
"upload_time_iso_8601": "2024-06-02T03:29:33.916136Z",
"url": "https://files.pythonhosted.org/packages/59/d3/054c905eb1404311a8f23022e5c1df209fa48b6b97a40c2a378164b57448/nessvec-0.1.16.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-02 03:29:33",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "tangibleai",
"gitlab_project": "nessvec",
"lcname": "nessvec"
}