🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-07-11 05:19:35 +00:00
parent 5f0a0c0e3a
commit 1bff478fcc
12 changed files with 15 additions and 13 deletions

View File

@@ -363,7 +363,7 @@ class ChineseTypoGenerator:
else:
# 处理多字词的单字替换
word_result = []
for _, (char, py) in enumerate(zip(word, word_pinyin)):
for _, (char, py) in enumerate(zip(word, word_pinyin, strict=False)):
# 词中的字替换概率降低
word_error_rate = self.error_rate * (0.7 ** (len(word) - 1))