Skip to content

Add Chinese (zh) Translation of Documentation #744

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 7 commits into
base: main
Choose a base branch
from

Conversation

CassiopeiaCode
Copy link

This pull request adds a complete Chinese (zh) translation of the Lighteval documentation, addressing #716.

@clefourrier
Copy link
Member

This is great, tysm!
@adeenayakup would you maybe have a couple minutes to skim and check this PR?

Copy link

@adeenayakup adeenayakup left a comment

Choose a reason for hiding this comment

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

Hi @clefourrier - Just reviewed, the translation looks good. There is just one minor issue, feel free to merge once it's corrected.

Thanks for your amazing work @CassiopeiaCode 🤗

- `hf_subset` (str),您想用于评估的特定子集(注意:当数据集没有子集时,请用`"default"`填充此字段,而不是用`None`或`""`)
- `hf_avail_splits` (list),您的数据集可用的所有分割(训练、验证、测试、其他...)
- `evaluation_splits` (list),您想用于评估的分割
- `few_shots_split` (str,可以为`null`),您想从中选择样本作为少量样本示例的特定分割。它应该与`evaluation_splits`中包含的集合不同

Choose a reason for hiding this comment

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

您想从中选择样本作为少量样本示例的特定分割
👇
您想从中选择少量示例样本的特定数据划分

@NathanHB NathanHB added the documentation Improvements or additions to documentation label May 19, 2025
@HuggingFaceDocBuilderDev
Copy link
Collaborator

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

NathanHB
NathanHB previously approved these changes May 19, 2025
@NathanHB NathanHB dismissed their stale review May 19, 2025 14:23

doc is not building chinese version

@NathanHB
Copy link
Member

NathanHB commented May 19, 2025

hi ! it seems like it's not available through the docs, can you follow an architecture like the one in this example ? :)
https://github.com/huggingface/transformers/blob/main/docs/TRANSLATING.md

CassiopeiaCode added 2 commits May 19, 2025 14:31
Update the description of the few_shots_split field in docs/translations/zh/adding-a-custom-task.mdx from “您想从中选择样本作为少量样本示例的特定分割” to “您想从中选择少量示例样本的特定数据划分”.
…upport

Rename docs/source to docs/source/en to explicitly separate English documentation. Move docs/translations/zh to docs/source/zh to follow the standard multilingual documentation structure. Update CI configuration to support both English and Chinese documentation builds.
@CassiopeiaCode
Copy link
Author

Thank you so much for your careful review and helpful suggestion, @adeenayakup!
I have updated the translation as you recommended.

@CassiopeiaCode
Copy link
Author

Thanks for pointing this out, @NathanHB !
I have reorganized the documentation structure to follow the multilingual architecture in the example you shared.
The Chinese docs are now under docs/source/zh and the CI is updated accordingly.
Could you please check if the documentation now builds correctly?

@CassiopeiaCode
Copy link
Author

I’m not sure if any changes are needed for lighteval/.github/workflows/doc-pr-upload.yml and lighteval/.github/workflows/doc-pr-build.yml, since they might be affected by the new documentation structure under lighteval/docs/source.
Please let me know if these workflow files should be updated as well.

@NathanHB
Copy link
Member

@CassiopeiaCode
Copy link
Author

Got it! Makes sense, I added the languages to the workflow. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants