A Cython Wrapped GloVe
Project description
crucyble
A Cython Wrapped GloVe (Global Vectors for Word Representation)
crucible, noun.
Pronounciation: \ ˈkrü-sə-bəl \
- a vessel of a very refractory material used for melting...
- a severe test
- 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, ...
Overview
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.
Development
Local Testing
Prerequisites: gcc
and cython installed.
To test this library locally:
- clone the repo
- from
crucyble/
runpython setup.py build_ext -i
- try:
PYTHONPATH=. python test/test_glove.py
- examine the outputs!
You can change the corpus variable in test_glove.py
to point to any corpus you have locally.
Contributing
...coming soon
Performance
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file crucyble-0.1.0.dev4.tar.gz
.
File metadata
- Download URL: crucyble-0.1.0.dev4.tar.gz
- Upload date:
- Size: 297.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abf6d332cbde9e66e58e156e6a7af03c9312cad79437db5ee9d372335c506f28 |
|
MD5 | b91f632ad53c4ec738cfbb286d6ae807 |
|
BLAKE2b-256 | 8c5a85e67f5d53b6548f3b99883b1046710751ebb65ed7f6cbd1b5098ce58d17 |