Skip to main content

TensorFlow Hub module producer for text embedding lookup

Project description

tfembedhub

Convert embeddings vectors (.txt format) into TensorFlow frozen embedding lookup.

How to

  1. Save lookup keys and embeddings values in text file.

Keys should be in first column. Other columns treated as embedding values. Any space-like characters allowed as columns separator.

Important: first row should have key "".

<UNQ> 0. 0. 0.
key1 1. 2. 3.
key2 4. 5. 6.
  1. Use command "tfembedhub-convert" to convert saved array into TF Hub Module.
tfembedhub-convert vectors.txt vectors-hub/

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

tfembedhub-1.1.4.tar.gz (7.0 kB view hashes)

Uploaded Source

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