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/
Evaluate DSM on intrinsic tasks
Evaluate on lexical similarity (men, simlex, simverb) or concept categorization (essli, ap, battig)
embeddix evaluate \
--embeddings /absolute/path/to/embeddings.npy \
--vocab /absolute/path/to/embeddings.vocab \
--dataset instrinsic_task_dataset_name
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.2.0.tar.gz
(7.0 kB
view details)
File details
Details for the file embeddix-1.2.0.tar.gz
.
File metadata
- Download URL: embeddix-1.2.0.tar.gz
- Upload date:
- Size: 7.0 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 | f89e23541fb65e2832cb72f53a437e60d66411e86c22e5a8c87dbb1b5430809c |
|
MD5 | 7a3cf5f80b906c972c933f4d11ba18c9 |
|
BLAKE2b-256 | 504ccd8fab4a736f42f0749b9f145a8bb58b934175d04a9623e757d43ff3b59f |