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

model.py文件问题 #1

Closed
BlueSkyBubble opened this issue Mar 22, 2020 · 1 comment
Closed

model.py文件问题 #1

BlueSkyBubble opened this issue Mar 22, 2020 · 1 comment

Comments

@BlueSkyBubble
Copy link

好像在整个训练过程中并没有用到model.py文件,然而finetuning的逻辑是写在model.py文件中的,所以整个训练过程并没有实现finetuning功能。不知这样理解对不对?

@cooscao
Copy link
Owner

cooscao commented Mar 22, 2020

在model.py里,是直接使用bert进行微调的,并没有加crf什么的。而crf.py里,是只取了bert最后一层的输出,作为句子的embedding,再输入到标准的bilstm-crf模型的,bert是没有参与训练的。

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