-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Translating model_doc/bert.md to Chinese #37806
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
base: main
Are you sure you want to change the base?
Conversation
Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the |
cc @stevhliu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks! You'll also need to find someone who can read Chinese to review your translation because I can't read it unfortunately 😅
@HMJ0628 I'm sorry to bother you, but I would greatly appreciate it if you could take the time to review it for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very apt and appropriate translation, I think. Just fix some of the details and it will be perfect.
predicted_token_id = predictions[0, masked_index].argmax(dim=-1) | ||
predicted_token = tokenizer.decode(predicted_token_id) | ||
|
||
print(f"The predicted token is: {predicted_token}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里,代码片段中,日志性质的输出是否也需要翻译?
What does this PR do?
Fixes #(#37705)
I have translated
model_doc/bert.md
to Chinese. Please let me know if there are any corrections. Thank you!Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.