Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

“词向量Word Embedding”教程中“稠密张量”从何而来?

Open A-Pai opened this issue 5 years ago • 4 comments

“词向量Word Embedding”教程中“稠密张量”从何而来? QQ截图20210422203335 https://www.paddlepaddle.org.cn/tutorials/projectdetail/1516149

A-Pai avatar Apr 22 '21 12:04 A-Pai

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!

paddle-bot-old avatar Apr 22 '21 12:04 paddle-bot-old

这个就是模型的权重

bjjwwang avatar Apr 23 '21 07:04 bjjwwang

“词向量Word Embedding”教程中“稠密张量”从何而来? QQ截图20210422203335 https://www.paddlepaddle.org.cn/tutorials/projectdetail/1516149

您好,感谢您使用本教程。

稠密向量就是Embedding lookup table, 教程中图3,每个单词对应一行,每一行有若干元素。

稠密向量通常有两种方式获取: 0. 使用word2vec等词向量训练算法,提前训练出来词表中对应的所有词的词向量,然后用这训练后的结果,组装出词表对应的词向量矩阵,就是这个稠密矩阵。 0. 假设在模型训练之前,你有n个单词,每个单词你想设定为d维度,那你可以自行初始化一个shape为[n, d]的矩阵,这个矩阵是一个可学习的参数,随着你训练过程进行,这个矩阵会不断更新。

wulei123456789 avatar Apr 25 '21 08:04 wulei123456789

Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。

paddle-bot-old avatar Apr 26 '22 06:04 paddle-bot-old