-
Notifications
You must be signed in to change notification settings - Fork 712
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
[TRANSLATION] Initial version for vietnamese #223
base: main
Are you sure you want to change the base?
Conversation
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. |
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.
Hmm ok interestingly it uses vietnamese grammatically better than me lol
2. **Hướng dẫn chu kỳ** (Thought → Action → Observation) | ||
|
||
``` | ||
Answer the following questions as best you can. You have access to the following tools: |
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.
Maybe provide a translated version of this whole code block
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.
Added the translation inside a <details>
collapsible block
Thanks @ngxson ! Do you think it's possible to parameterise the |
Yup I generalized the script, user can create a new python file for each language, for example from translation import auto_translate
output_lang = "fr"
prompt = lambda content: f'''
The prompt here........
=== BEGIN OF TEXT ===
{content}
=== END OF TEXT ===
'''.strip()
auto_translate(
prompt=prompt,
output_lang=output_lang,
) |
units/vi/_toctree.yml
Outdated
- title: Khi nào các bước tiếp theo được công bố? | ||
sections: | ||
- local: communication/next-units | ||
title: Các Chương tiếp theo |
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.
maybe not upper case the second word?
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.
Yeah maybe I did a Ctrl+F replace all and forgot about this. Thanks for reminding!
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.
Hmm ok seems like not because of that, but the LLM just copy from my example in the prompt
Co-authored-by: XλRI-U5 <[email protected]>
WIP, currently all files are generated by
scripts/vi-translation.py
without any review.TODO: