Metadata-Version: 2.3
Name: nessvec
Version: 0.2.0
Summary: Word embeddings with meaningful dimensions for better explainability.
License: GPLv3
Keywords: NLP,Natural Language Processing,Virtual Assistant,chatbot,Text Processing,Machine Learning,Text Mining,Deep Learning
Author: Hobson Lane
Author-email: hobson@tangibleai.com
Requires-Python: >=3.9
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Linguistic
Requires-Dist: beautifulsoup4 (>=4.12,<5.0)
Requires-Dist: dask
Requires-Dist: datatable
Requires-Dist: django (>=4.2.4,<5.0.0)
Requires-Dist: edit-distance (>=1.0.6,<2.0.0)
Requires-Dist: h5py (>=3.9.0,<4.0.0)
Requires-Dist: jsonschema (>=4.10.0,<4.18.0)
Requires-Dist: jupyter (==1.0.0)
Requires-Dist: meilisearch (>=0.28.2,<0.29.0)
Requires-Dist: nlpia2-wikipedia (>=1.5.14,<2.0.0)
Requires-Dist: pandas (>=2.1.4,<3.0.0)
Requires-Dist: pyarrow
Requires-Dist: pynndescent
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
Requires-Dist: seaborn (>=0.13.0,<0.14.0)
Requires-Dist: sentence-transformers (>=2.2.2)
Requires-Dist: spacy
Requires-Dist: xmltodict (>=0.13.0,<0.14.0)
Project-URL: Documentation, https://gitlab.com/tangibleai/nessvec
Project-URL: Homepage, https://gitlab.com/tangibleai/nessvec
Description-Content-Type: text/markdown

# 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

```

##


