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

Update roformerv2 tokenizer's token_type_ids #2127

Merged
merged 1 commit into from
May 12, 2022
Merged

Update roformerv2 tokenizer's token_type_ids #2127

merged 1 commit into from
May 12, 2022

Conversation

JunnYu
Copy link
Member

@JunnYu JunnYu commented May 12, 2022

PR types

Bug fixes

PR changes

APIs

Description

修改roformerv2的tokenizer中的token_type_ids。
当输入text和text pair时,返回如下形式。

0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1
| first sequence    | second sequence |

@ZeyuChen ZeyuChen merged commit 5ec8d13 into PaddlePaddle:develop May 12, 2022
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

Successfully merging this pull request may close these issues.

2 participants