Skip to content
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

此处代码是否需要修改? #42

Open
4aday opened this issue May 21, 2023 · 1 comment
Open

此处代码是否需要修改? #42

4aday opened this issue May 21, 2023 · 1 comment

Comments

@4aday
Copy link

4aday commented May 21, 2023

text_translation.py 中的第 300 行:
def return_text(text): text = text.replace(".", ".\n")

是否应该将text.replace(".", ".\n") 改为text.replace(". ", ".\n")
因为 . 不一定表示英文中的句号,也有可能出现在数字(如3.14)或者代码中(如text.replace);
在 . 后面加上空格,才能准确地对应英文中的句号。

不知我的想法是否正确,望解答~

@jesselau76
Copy link
Owner

jesselau76 commented May 22, 2023 via email

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

No branches or pull requests

2 participants