-
Notifications
You must be signed in to change notification settings - Fork 30
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
请问run_pretrain.py和train.py有什么区别? #1
Comments
pretrain是预训练代码,一般来说,google的Bert是基于wiki的中文数据集预训练的,我们拿来做司法这种特殊领域需要现在司法数据上做预训练,训练完之后,我们再使用自己再次预训练后的模型去做下游任务,如这次的要素抽取,使用的代码就是train
| |
m13021933043
邮箱:[email protected]
|
Signature is customized by Netease Mail Master
在2019年10月15日 11:40,unstory 写道:
基础比较差,没看懂。
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
执行run_pretrain.py后,需要把train.py里面的bert_path,init_checkpoint这些参数改成预训练后的模型的路径吗? |
是的,init_checkpoint加载你预训练后的ckpt模型文件,config和vocab使用的文件和预训练一样 |
感谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
基础比较差,没看懂。
The text was updated successfully, but these errors were encountered: