Skip to main content

embeddix

GitHub release PyPI release Build MIT License

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

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

Metadata

Release files for embeddix 1.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for embeddix 1.16.0
File Size Uploaded
embeddix-1.16.0.tar.gz 434.1 kB Details

Release files / embeddix-1.16.0.tar.gz

Download URL embeddix-1.16.0.tar.gz
Size 434.1 kB
Tags Source
SHA-256 checksum
How to use checksums
367fd578b9d3e0dee0f018c68465af2015cc53fd56819b015fe2e312493a48cd
BLAKE2b-256 checksum
How to use checksums
a2c09894bb3cdd7d13ce40ab81a05baeea1e1dafcff0571d21c6cae25be65de1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

1.16.0 This release

1 release file

1.15.1

1 release file

1.15.0

1 release file

1.14.1

1 release file

1.14.0

1 release file

1.13.4

1 release file

1.13.3

1 release file

1.13.2

1 release file

1.13.1

1 release file

1.10.0

1 release file

1.6.3

1 release file

1.4.0

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page