CrossLingualContextualEmb icon indicating copy to clipboard operation
CrossLingualContextualEmb copied to clipboard

Code for generating embedding visualization

Open chiehminwei opened this issue 6 years ago • 1 comments

Thank you for the nice work. I read your paper and saw a few embedding visualizations that look very nice, but I can't seem to find the code for generating those in the repo here.

I'm also trying to visualize contextualized embeddings (for BERT). How did you manage to do that? Thank you so much for your help.

chiehminwei avatar Mar 28 '19 13:03 chiehminwei

Hi, Thanks for your feedback.

The visualizations were done using a dimensionality reduction via PCA. The PCA was computed over the anchor space and then applied on the displayed embeddings. I'll try to clean that code and to add it soon.

TalSchuster avatar Mar 29 '19 04:03 TalSchuster