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/embeddings/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.1.0.tar.gz
(5.4 kB
view hashes)