Skip to content

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Nanji-Huaji
Copy link

@Nanji-Huaji Nanji-Huaji commented Apr 26, 2025

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

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

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.

@github-actions github-actions bot marked this pull request as draft April 26, 2025 16:14
Copy link

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 Ready for review button (at the bottom of the PR page). This will assign reviewers and trigger CI.

@Nanji-Huaji Nanji-Huaji marked this pull request as ready for review April 26, 2025 16:14
@github-actions github-actions bot requested a review from stevhliu April 26, 2025 16:15
@Nanji-Huaji Nanji-Huaji changed the title Translate bert Translating model_doc/bert.md to Chinese Apr 26, 2025
@Rocketknight1
Copy link
Member

cc @stevhliu

Copy link
Member

@stevhliu stevhliu left a 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 😅

@Nanji-Huaji
Copy link
Author

@HMJ0628 I'm sorry to bother you, but I would greatly appreciate it if you could take the time to review it for me.

Copy link

@NoNormalCreeper NoNormalCreeper left a 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}")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里,代码片段中,日志性质的输出是否也需要翻译?

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.

4 participants