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

🚀 功能建议:建议增加翻译前,去除换行符之类的空白符的功能 #513

Closed
4 of 5 tasks
luckmoon opened this issue Apr 17, 2024 · 4 comments
Closed
4 of 5 tasks
Labels
enhancement New feature or request fixed in next release The issue will be closed once next release is available

Comments

@luckmoon
Copy link

请先确认以下事项

  • 已仔细阅读了 README
  • issues 页面搜索过(包括已关闭的 issue),未发现类似功能建议
  • Easydict 已升级到 最新版本
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能描述

从一些pdf,特别是双栏的学术论文中,复制一段文本后去翻译时,由于有些pdf会带着换行符,比如:
CategoryAlignment. Intheindustrialscenario,thecategories
of items will be diverse (e.g., food, hotels, movies, etc.) and the
number of items in each category is seriously uneven. With the
imbalanced category data, the two-tower model performs differ-
ently for the different categories, and it performs much worse on
the categories with relatively smaller amount of items.
这导致翻译时,翻译接口会把这段文字错误拆句,非常影响效果:
image

使用场景

pdf复制时

实现方案(可选)

No response

是否愿意提交 PR 实现该功能

  • 我愿意提交 PR
@luckmoon luckmoon added the enhancement New feature or request label Apr 17, 2024
Copy link

Hello luckmoon, Thank you for your first issue contribution 🎉

@tisfeng tisfeng added the fixed in next release The issue will be closed once next release is available label Apr 17, 2024
@tisfeng
Copy link
Owner

tisfeng commented Apr 17, 2024

目前已经实现了,下个版本就上。

这个周末应该会发新版本。

image

@tisfeng
Copy link
Owner

tisfeng commented May 1, 2024

2.7.0 版本已实现该功能。

@tisfeng tisfeng closed this as completed May 1, 2024
@cnkjw
Copy link

cnkjw commented May 11, 2024

这个问题好像还没有解决,无法正确处理双栏PDF中的换行符号。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed in next release The issue will be closed once next release is available
Projects
None yet
Development

No branches or pull requests

3 participants