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

翻译出现问题 #4

Closed
ghost opened this issue Mar 16, 2023 · 7 comments
Closed

翻译出现问题 #4

ghost opened this issue Mar 16, 2023 · 7 comments
Labels
enhancement New feature or request
Milestone

Comments

@ghost
Copy link

ghost commented Mar 16, 2023

在翻译
鉄道の停車場のちかくに、猫の第六事務所がありました。ここは主に、猫の歴史と地理をしらべるところでした。
会翻译为
“Near the station of the light railway, there was the sixth office of the cats. This place was mainly for researching the history and geography of cats.” (Translated from Japanese)
并且翻译时有时候会出现多余的提示
52db6c4afe1e6c4b8657f618fecc6d47

@josStorer
Copy link
Owner

这个目前属于是语言模型本身的问题, 要解决需要提供额外的从A翻译到B的指定说明, 就像常见翻译软件那样

目前我的做法是用了比较通用的提示, 某些情况下语言模型没能正确理解导致的问题

@josStorer josStorer added the enhancement New feature or request label Mar 16, 2023
@ghost
Copy link
Author

ghost commented Mar 16, 2023

我尝试了把下述说明删了就可以正常工作,如果添加就一定会翻译成英语
If it is already in ${preferredLanguage}, +
`translate it into English and only show me the translated content:\n"${selection}"

@josStorer
Copy link
Owner

是的, 我的想法是, 很多人往往需要自己的语言和英语相互翻译, 所以我企图通过一个通用提示解决这个问题
如果删掉了这个提示, 就没法方便地翻译成英语
而现在如果它翻译成英语, 你可以二次框选翻译, 保证翻译成你所用的语言, 就是会浪费token

@josStorer
Copy link
Owner

计划通过自定义提示词系统解决该问题: #14

@josStorer
Copy link
Owner

集中到 #14 , 该问题先关闭

@josStorer
Copy link
Owner

josStorer commented Mar 19, 2023

@VsentKB v2.0.6现在提供了两种翻译选项, 分别是直接翻译和双向翻译, 双向翻译默认关闭, 现在默认直接翻译成你设置的语言

@josStorer
Copy link
Owner

v2.5.6

先前我所设想的Plugin System有些复杂, 并且由于我的时间和精力有限, 暂时无法实现, 但考虑到大量用户需要prompt自定义功能, 因此目前我先实现了一个简化的版本, 此功能的实现并不复杂, 但在过去的一年里一直缺失, 对此我表示抱歉

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

No branches or pull requests

1 participant