Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

如何获取句子向量? #7

Closed
cdj0311 opened this issue Dec 25, 2018 · 2 comments
Closed

如何获取句子向量? #7

cdj0311 opened this issue Dec 25, 2018 · 2 comments

Comments

@cdj0311
Copy link

cdj0311 commented Dec 25, 2018

您好,
您的代码对我帮助非常大,现在得到的是字的向量,请问如何得到句子向量呢?

@spate141
Copy link

spate141 commented Dec 25, 2018

你可以平均单词向量!
编辑:检查下面的答案!

@CyberZHG
Copy link
Owner

  • Use the output of [CLS] token
  • Append a pooling layer
  • Append RNN layers
  • Append an attention layer

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants