Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

字embedding生成词embedding这一步的代码在哪? #6

Open
svjack opened this issue Dec 14, 2020 · 1 comment
Open

字embedding生成词embedding这一步的代码在哪? #6

svjack opened this issue Dec 14, 2020 · 1 comment

Comments

@svjack
Copy link

svjack commented Dec 14, 2020

‘ 然后用字embedding的平均作为词embedding的初始化’
平均这一步在源码的哪里?

@bojone
Copy link

bojone commented Jan 27, 2021

内置在bert4keras中
https://github.com/bojone/bert4keras/blob/270a8bb43a8a6c00ba9074f9f9f508df2ff1642a/bert4keras/models.py#L234

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

No branches or pull requests

2 participants