Skip to content

使用prompt后无法翻译,只显示重影 #925

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

Open
4 tasks done
junelee220 opened this issue May 12, 2025 · 3 comments
Open
4 tasks done

使用prompt后无法翻译,只显示重影 #925

junelee220 opened this issue May 12, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@junelee220
Copy link

在提问之前...

  • 我已经搜索了现有的 issues
  • 我在提问题之前至少花费了 5 分钟来思考和准备
  • 我已经认真且完整的阅读了 wiki
  • 我已经认真检查了问题和网络环境无关(包括但不限于Google不可用,模型下载失败)

使用的环境

macos13上的docker

请选择安装方式

docker

描述你的问题

pdfmathtranslate版本1.96和1.99,
如果使用自定义prompt,会在最终的输出pdf里出现重影,重影内容是prompt的内容。
1.测试后发现2.0rc似乎解决了这个问题。
2.但无论是1.96/1.99还是2.0rc,翻译pdf的表格/图片和某些段落都会有漏翻。

Image Image

如何复现

  1. 执行 '...'
  2. 选择 '....'
  3. 出现问题

预期行为

感觉整个处理过程是不可见的,一旦某些部分因为超时原因翻不出来,除了看到logs里的记录,也没办法逐一修正;还是期待做成像“沉浸式翻译”里的办法,可以实时呈现页面上各段落的翻译?

相关 Logs


原始PDF文件

AH401 24-25 - Reimagining Realty - v.PRINT 1.zh-CN.mono-v2.0rc.pdf
AH401 24-25 - Reimagining Realty - v.PRINT 1.zh.mono-v1.99.pdf

还有别的吗?

No response

@junelee220 junelee220 added the bug Something isn't working label May 12, 2025
@junelee220
Copy link
Author

同时连简单的上一页末句和下一页首句的连句/断句翻译都没能翻好(默认设置),是不是我的设置有误?

@hellofinch
Copy link
Contributor

同时连简单的上一页末句和下一页首句的连句/断句翻译都没能翻好

因为翻译是按PDF的段来进行的,目前并没有区分上下文的功能。

重影的问题请先确认需要翻译的PDF不是扫描件,扫描件的话2.0才有处理。
PDF中的图片上的内容是不处理的,所以图片没有翻译是正常的。

@awwaawwa
Copy link
Collaborator

  1. 1.x版本自定义提示词要使用几个专用占位符。
  2. 跨栏跨页后面处理
  3. qps开低点
  4. 图表不翻译是已知问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants