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

Uploaded Source

File details

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

File metadata

  • Download URL: embeddix-1.13.3.tar.gz
  • Upload date:
  • Size: 10.2 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.13.3.tar.gz
Algorithm Hash digest
SHA256 d28c1e5fe721364d72f346d5e934a0be551296a38aa9739fc26896cd487d4de2
MD5 8f9cfc67adf7b2cadc1f25f5d3490916
BLAKE2b-256 99eb8937e86ade5ceb9a8bfda344e036cc8d20d00eb37e57c336b199fb55e23e

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