Skip to content

Conversation

@Ricardo-shuo-liu
Copy link
Contributor

PR Category

User Experience
Description

Fix:
修复如下 typo 问题:

"datas",
"deocder",
"dafault",
"decribe",
"decribes"

其中datas全部被设置成为变量名,如果改为data会和代码其他部分出现严重冲突,变量含义混淆等问题,如果修改成其他单词如aBunchOfData 我认为可能没有datas更好,虽然不符合单词逻辑但是确实可读性更强。已经将涉及出问题的文件跳过。

对于deocder也被设为变量名,但是修改后结果可能更好,已经完成修改。

Related links
[CodeStyle][Typos] ✏️ Typos 工具引入 #7543

@paddle-bot
Copy link

paddle-bot bot commented Nov 5, 2025

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7612.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@github-actions
Copy link

github-actions bot commented Nov 5, 2025

📚 本次 PR 文档预览链接(点击展开)
ℹ️ 预览提醒
请等待 Docs-NEW 流水线运行完成后再点击预览链接,否则可能会看到旧版本内容或遇到链接无法访问的情况。
  • docs/design/concepts/tensor.md: 点击预览
  • docs/dev_guides/style_guide_and_references/error_message_writing_specification_cn.md: 点击预览
  • docs/guides/flags/memory_en.rst: 点击预览

@ooooo-create ooooo-create requested a review from Copilot November 5, 2025 15:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes spelling errors across documentation and code files, and updates the typos configuration file to enable spell checking for these corrections. The changes correct typos like "dafault" to "default", "deocder" to "decoder", "decribe/decribes" to "describe/describes".

Key Changes

  • Corrected spelling errors in documentation files (memory_en.rst, error_message_writing_specification_cn.md, tensor.md)
  • Fixed variable naming typo in transformer notebook (deocder_emb → decoder_emb)
  • Removed typo exceptions from _typos.toml to enable proper spell checking

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/practices/nlp/transformer_in_English-to-Spanish.ipynb Fixed typo in variable name "deocder_emb" to "decoder_emb" and changed execution_count to null
docs/guides/flags/memory_en.rst Corrected spelling of "dafault" to "default" in two locations
docs/dev_guides/style_guide_and_references/error_message_writing_specification_cn.md Fixed spelling of "dafault_data_type" to "default_data_type"
docs/design/concepts/tensor.md Corrected "decribe" to "describe" and "decribes" to "describes"
_typos.toml Removed incorrect word exceptions (dafault, datas, decribe, decribes, deocder) from the allow list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

_typos.toml Outdated
Comment on lines 6 to 11
# Skip `datas ` check in these files
"docs/practices/time_series/autoencoder.ipynb",
"docs/practices/nlp/transformer_in_English-to-Spanish.ipynb",
"docs/guides/06_distributed_training/data_parallel/amp_cn.rst",
"docs/practices/nlp/addition_rnn.ipynb",
"docs/practices/cv/pointnet.ipynb"
Copy link

Copilot AI Nov 5, 2025

Choose a reason for hiding this comment

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

The comment '# Skip datas check in these files' is misleading since this PR removes the 'datas' exception from the allow list. These files are now excluded to preserve the intentional use of 'datas' in those specific files. Consider updating the comment to clarify that these files intentionally use 'datas' and should be excluded from spell checking.

Copilot uses AI. Check for mistakes.
@ooooo-create
Copy link
Collaborator

可以把 datas 放在 PaddlePaddle specific words 下面吧,就不用忽略文件了

@Ricardo-shuo-liu
Copy link
Contributor Author

可以把 datas 放在 PaddlePaddle specific words 下面吧,就不用忽略文件了

已经完成datas加入,包括之前的文件跳过的删除。对于ipynb的json格式的错误修改已经修正。

Copy link
Collaborator

@ooooo-create ooooo-create left a comment

Choose a reason for hiding this comment

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

LGTM

@ooooo-create ooooo-create merged commit bec19cc into PaddlePaddle:develop Nov 6, 2025
5 checks passed
@ooooo-create ooooo-create added the HappyOpenSource 快乐开源活动issue与PR label Nov 6, 2025
@Ricardo-shuo-liu Ricardo-shuo-liu deleted the fix-d6-d10 branch November 11, 2025 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants