From fdd4ac43d2854422c1406b3467fe646ab9da12f1 Mon Sep 17 00:00:00 2001 From: beyondguo <37113676+beyondguo@users.noreply.github.com> Date: Wed, 4 Jan 2023 11:07:31 +0800 Subject: [PATCH] Revise some unnatural translations Some unnatural translations have been revised to use expressions more popular with Chinese readers --- chapters/zh-CN/chapter8/3.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapters/zh-CN/chapter8/3.mdx b/chapters/zh-CN/chapter8/3.mdx index b893984bb..d983455c2 100644 --- a/chapters/zh-CN/chapter8/3.mdx +++ b/chapters/zh-CN/chapter8/3.mdx @@ -9,7 +9,7 @@ -[Hugging Face forums](https://discuss.huggingface.co) 是从开源团队和更广泛的 Hugging Face 社区获得帮助的好地方。以下是任何一天的主页面: +[Hugging Face 论坛](https://discuss.huggingface.co) 是从开源团队和更广泛的 Hugging Face 社区获得帮助的好地方。以下是论坛某一天的主页面:
The Hugging Face forums. @@ -25,7 +25,7 @@ ## 写一篇好的论坛帖子 -作为一个运行示例,假设我们试图从 Wikipedia 文章生成嵌入以创建自定义搜索引擎。像往常一样,我们按如下方式加载分词器和模型: +作为一个运行示例,假设我们试图从 Wikipedia 文章生成嵌入表示以创建自定义搜索引擎。像往常一样,我们按如下方式加载分词器和模型: ```python from transformers import AutoTokenizer, AutoModel @@ -35,7 +35,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_checkpoint) model = AutoModel.from_pretrained(model_checkpoint) ``` -现在假设我们尝试嵌入整个部分[Wikipedia article](https://en.wikipedia.org/wiki/Transformers) 关于Transformers(专营权,而不是图书馆!): +现在我们尝试将[变形金刚的维基百科](https://en.wikipedia.org/wiki/Transformers)的一整段进行嵌入表示(热知识:变形金刚的英文就是 Transformers ,而现在 Transformers 作为一个 🤗 Python 库也被越来越多人熟知): ```python text = """