TensorFlow Hub module producer for text embedding lookup
Project description
tfembedhub
Convert embeddings vectors (.txt format) into TensorFlow frozen embedding lookup.
How to
- 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.
- Use command "tfembedhub-convert" to convert saved array into TF Hub Module.
tfembedhub-convert vectors.txt vectors-hub/
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
tfembedhub-1.1.4.tar.gz
(7.0 kB
view hashes)