Skip to main content

A general purpose toolkit for word embeddings

Project description

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

Project details


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.16.0.tar.gz (434.1 kB view details)

Uploaded Source

File details

Details for the file embeddix-1.16.0.tar.gz.

File metadata

  • Download URL: embeddix-1.16.0.tar.gz
  • Upload date:
  • Size: 434.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for embeddix-1.16.0.tar.gz
Algorithm Hash digest
SHA256 367fd578b9d3e0dee0f018c68465af2015cc53fd56819b015fe2e312493a48cd
MD5 080b73c68485920eeaf928eb17a72cf1
BLAKE2b-256 a2c09894bb3cdd7d13ce40ab81a05baeea1e1dafcff0571d21c6cae25be65de1

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page