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

[bugfix] fix tokenizer removing kwargs #2549

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

gongel
Copy link
Member

@gongel gongel commented Jun 17, 2022

PR types

Bug fixes

PR changes

APIs

Description

  • xlm的tokenizer需要传入langbypass_tokenizer参数,所以修改了基类tokenizer_utils的_tokenize()方法,但由于其他的模型的_tokenize()只接受token这一个参数,导致入参失败。

@guoshengCS
Copy link
Collaborator

描述信息需要更准确些,是接受更多参数时导致出现了什么问题

@guoshengCS
Copy link
Collaborator

也请 @JunnYu 知晓~

@gongel
Copy link
Member Author

gongel commented Jun 17, 2022

描述信息需要更准确些,是接受更多参数时导致出现了什么问题

Updated, thx~

@gongel gongel merged commit 2f366e4 into PaddlePaddle:develop Jun 17, 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.

None yet

2 participants