Skip to main content

# GlovePy

A Python implementation with Cython of the [GloVe](http://www-nlp.stanford.edu/projects/glove/) algorithm with multi-threaded training. this Python package mainly contains two Python classes. The first Python class (Corpus) builds the co-occurrence matrix given a collection of documents; while the second Python class (Glove) will generate vector representations for words.

GloVe is an unsupervised learning algorithm for generating vector representations for words developed by Stanford NLP lab. The paper describing the model is [here](http://nlp.stanford.edu/projects/glove/glove.pdf). In contrast with [Word2Vec](https://code.google.com/p/word2vec/) (there is a great Python implementation in [gensim](http://radimrehurek.com/gensim/models/word2vec.html)) which is often referred as prediction method, GloVe is called counting method which the embedding is produced by factorizing the logarithm of the corpus word co-occurrence matrix.

The original implementation for this Machine Learning model can be [found here](http://nlp.stanford.edu/projects/glove/). This work is based on the work of [glove-python](https://github.com/maciejkula/glove-python) and [glove](https://github.com/JonathanRaiman/glove).

## Installation

### Build on Windows

If you are installing this package on Windows (tested on Windows 10), you will need to install Visual C++ 2015 Build Tools. If you have already installed Microsoft Visual Studio, you cannot install the Visual C++ Build Tools. It will ask you to uninstall your existing VS when you tried to install the Visual C++ build tools using the standalone installer. However, since you already have the VS, you can go to Control Panel—Programs and Features and right click the VS item and Change-Modify, then check the option of those components that relates to the Visual C++ Build Tools, like Visual C++, Windows SDD, then install them. Please also make sure the Build tools path has been added to the system path.

Once you have the Visual C++ Build Tools, you can build the package as follows:

`python python setup.py build_ext --inplace --compiler=msvc python setup.py install `

### Linux

Install from the source code:

`python python setup.py install `

Metadata

Release files for glovepy 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for glovepy 0.0.3
File Size Uploaded Provenance
glovepy-0.0.3.tar.gz 145.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for glovepy 0.0.3
File Interpreter ABI Platform
glovepy-0.0.3-py3.5-linux-x86_64.egg Legacy Egg format - - Details

Total release size: 655.4 kB

Release files / glovepy-0.0.3.tar.gz

Download URL glovepy-0.0.3.tar.gz
Size 145.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1ac723a058b00df3425bea75734047ed3eacfbe81557243f2cca6784627df1b7
BLAKE2b-256 checksum
How to use checksums
0d59b1a51767841b03a0897c305b7dfb044e81840c8efd419525b513d63d5415
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / glovepy-0.0.3-py3.5-linux-x86_64.egg

Download URL glovepy-0.0.3-py3.5-linux-x86_64.egg
Size 510.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
254e594ab37db433b38ebe3fb813eab18c8d4f27e7920637c7d357233adb7fbc
BLAKE2b-256 checksum
How to use checksums
73a984e8e998f3516c8e4ad78c07816dc58bf003f4bf0c8ee8f8685567eb11db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for glovepy 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page