Skip to content

Tiny script to convert a fastText / gensim vector file to a tsv file for displaying in Tensorflow's projector

Notifications You must be signed in to change notification settings

mpss2019fn1/VecToTSV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VecToTSV

Tiny script to convert a fastText / gensim vector file to a tsv file for displaying in Tensorflow's projector

Usage

Make sure you have a vector file (result of word representation learning; e.g. fastText) at hand. This file serves as input to this script.

python model_to_tsv.py --input=<vector file> --output-vec=model.tsv --output-meta=meta.tsv

You can upload both resulting files to the TensorFlow Projector in order to get a visual representation of your word embeddings.

About

Tiny script to convert a fastText / gensim vector file to a tsv file for displaying in Tensorflow's projector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages