Skip to main content

A Cython Wrapped GloVe

Project description


Travis (.org) branch PyPI PyPI - Python Version PyPI - Wheel GitHub

A Cython Wrapped GloVe (Global Vectors for Word Representation)

crucible, noun.

Pronounciation: \ ˈkrü-sə-bəl \

  1. a vessel of a very refractory material used for melting...
  2. a severe test
  3. a vessel of a very refractory (see refractory entry 1 sense 3) material (such as porcelain) used for melting and calcining a substance that requires a high degree of heat

Synonyms: gauntlet, ...

source: merriam-webster


This library aims to provide the GloVe algorithm in a nearly-unaltered format relative to its original distribution by stanfordnlp.

The bulk of the alterations consist of removing the main() methods from the glove applications, and converting them to accept filenames instead of stdin/stdout. (See pull requests 1, 2, and 3)

These altered C sources are then wrapped with Cython to provide "native extensions" in the Python runtime.


Local Testing

Prerequisites: gcc and cython installed.

To test this library locally:

  1. clone the repo
  2. from crucyble/ run python build_ext -i
  3. try: PYTHONPATH=. python test/
  4. examine the outputs!

You can change the corpus variable in to point to any corpus you have locally.


...coming soon


Todo... :shrug:

License Info

Derivative implementation of the GloVe library from Stanford redistributed in accordance with Apache License and redistributed under MIT License

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for crucyble, version 0.1.0.dev4
Filename, size File type Python version Upload date Hashes
Filename, size crucyble-0.1.0.dev4.tar.gz (297.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page