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

使用bert作为嵌入时,input层是两层?和使用w2v嵌入调用方式不一样吧[Question] #62

Closed
wqw123 opened this issue Apr 7, 2019 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@wqw123
Copy link

wqw123 commented Apr 7, 2019

A clear and concise description of what you want to know.

@wqw123 wqw123 added the question Further information is requested label Apr 7, 2019
@BrikerMan
Copy link
Owner

是的,目前框架会用一个全 0 的数组作为第二个输入。

@wqw123
Copy link
Author

wqw123 commented Apr 8, 2019

是的,目前框架会用一个全 0 的数组作为第二个输入。

所以比方说我使用您提供的bert作为自己网络的嵌入,那么我的keras model在 fit时候的数据应该是x=[train_x,[全0]]对吧?无论是序列标注问题还是分类问题

@BrikerMan
Copy link
Owner

BrikerMan commented Apr 8, 2019 via email

@wqw123
Copy link
Author

wqw123 commented Apr 8, 2019

非常感谢您的回答

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

No branches or pull requests

2 participants