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

关于MLM pretraining时,做句子对Classfication的咨询? #21

Open
done520 opened this issue Jan 23, 2024 · 1 comment
Open

关于MLM pretraining时,做句子对Classfication的咨询? #21

done520 opened this issue Jan 23, 2024 · 1 comment

Comments

@done520
Copy link

done520 commented Jan 23, 2024

您好,想请教下句子对Pretraining,我看了Task/TaskForPretraining.py,是 MLM和NSP的组合任务,受到启发想咨询下,如果做句子对分类(即判断句子a和句子b是否属于同一类),是不是相应的调整一下句子对的处理(即模型输入token_type_ids改为[0] * (len(token_a_ids) + 2) + [1] * (len(token_b_ids) + 1)),用句子对label替换 nsp_label即可?还是说有其他的方法?

@done520
Copy link
Author

done520 commented Jan 23, 2024

或者请大佬提供一些做句子对分类 Pretraining思路? 感谢

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

1 participant