Metadata-Version: 2.1
Name: nessvec
Version: 0.0.20
Summary: Decomposition of word embeddings (word vectors) into qualities ('ness'es).
Home-page: https://gitlab.com/tangibleai/nessvec
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.7,<3.10
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.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Linguistic
Requires-Dist: beautifulsoup4 (>=4.11,<5.0)
Requires-Dist: django (>=4,<5)
Requires-Dist: editdistance (>=0.6,<0.7)
Requires-Dist: h5py (>=3.8,<4.0)
Requires-Dist: huggingface_hub (>=0.12,<0.13)
Requires-Dist: jupyter (>=1.0.0,<2.0.0)
Requires-Dist: meilisearch (>=0.23,<0.24)
Requires-Dist: pandas-gbq (>=0.19,<0.20)
Requires-Dist: pynndescent (>=0.5,<0.6)
Requires-Dist: python-dotenv (>=0.21,<0.22)
Requires-Dist: scikit-learn (>=1.2,<2.0)
Requires-Dist: scipy (>=1.10,<2.0)
Requires-Dist: seaborn (>=0.12,<0.13)
Requires-Dist: spacy (>=3.5,<4.0)
Requires-Dist: torchtext (>=0.14,<0.15)
Requires-Dist: tqdm (>=4.64,<5.0)
Requires-Dist: wikipedia (>=1.4,<2.0)
Requires-Dist: xmltodict (>=0.13,<0.14)
Project-URL: Documentation, https://gitlab.com/tangibleai/nessvec
Project-URL: Repository, 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

```

##


