如何从Wiki-words-250-with-normalization

我上传了嵌入内容: embed = hub.load(“ https://tfhub.dev/google/Wiki-words-250-with-normalization/2”)

嵌入矩阵的形状为1009375x250,例如,我可以使用x = embed([“ hello”])轻松获得每个单词的嵌入向量。

我想获取嵌入矩阵中存在的所有单词。即“ a”,..“ apple”,...“ Zulu”,...等等-整个词典... 我怎么得到他们?

iCMS 回答:如何从Wiki-words-250-with-normalization

您可以在api目录内Assets子目录的tokens.txt中找到该字典。

本文链接:https://www.f2er.com/2115705.html

大家都在问