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

Remove kwargs mapping on Tokenizer decode/decode_batch #70

Merged
merged 1 commit into from
Jan 15, 2020

Conversation

mfuntowicz
Copy link
Member

This is suggested by the current issue #54 (comment).

kwargs cannot be called as positional argument, they have to be named one, replacing kwargs with the actual skip_special_tokens
allows both (named and positional) syntax.

Signed-off-by: Morgan Funtowicz morgan@huggingface.co

…ly one possible arg.

This is suggested by the current issue #54 (comment).

kwargs cannot be called as positional argument, they have to be named one, replacing kwargs with the actual skip_special_tokens
allows both (named and positional) syntax.

Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
@mfuntowicz mfuntowicz requested a review from n1t0 January 15, 2020 10:33
@n1t0
Copy link
Member

n1t0 commented Jan 15, 2020

Nice one. I first made this modification the other way around to allow using it as a named argument, and forgot to modify the script accordingly. But it’s better to have both options anyway! Thanks!

@n1t0 n1t0 merged commit 65b3538 into master Jan 15, 2020
@n1t0 n1t0 deleted the python-decode-kwargs-fix branch January 15, 2020 14:40
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