A general purpose toolkit for word embeddings
Project description
embeddix
A small toolkit for processing word embeddings with numpy. You can use embeddix
to convert .txt embeddings (such as glove files) to numpy and vice-versa.
Install
pip install embeddix
or, after a git clone:
python3 setup.py install
Use
Extract vocabulary from a txt embeddings file
embeddix extract --embeddings /absolute/path/to/embeddings.txt
Convert from txt to numpy
embeddix convert --to numpy --embeddings /absolute/path/to/embeddings.txt
Convert from numpy to txt
embeddix convert --to txt --embeddings /absolute/path/to/embeddings.npy
Align vocabularies across models
embeddix reduce --embeddings /absolute/path/to/model/directory/
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
embeddix-1.0.1.tar.gz
(5.4 kB
view details)
File details
Details for the file embeddix-1.0.1.tar.gz
.
File metadata
- Download URL: embeddix-1.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2775426b2eb541230642cc40f4623b4981f6e4b425049e9fe8ed4a4ac804baec |
|
MD5 | 2a53b74992b941878a7fc3768a384dc6 |
|
BLAKE2b-256 | 42ba90e172d76d1d87b666364e6699f44c8527d49952eb61480372cf05417a7e |