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

不同样式的样本对应什么样的情形,如何根据自己的需求选择样本的样式 #101

Open
lixiaoxiangzhi opened this issue Dec 19, 2023 · 0 comments

Comments

@lixiaoxiangzhi
Copy link

选择哪一种方法进行数据预处理,处理得到的结果不同。

# 格式1
# return {
#     'input_ids': input_ids,
#     'attention_mask': attention_mask,
#     'labels': labels,
#     'target_mask': target_mask
# }
# 格式2
# return {'input_ids': input_ids, 'labels': labels}
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