-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
[Feature]cnki 分段翻译 #749
Labels
Comments
由于我精力有限,无法顾及所有细节的功能请求,欢迎PR |
谢谢回复,非常理解 |
#762 我尝试实现了,已提交PR,不过仅仅根据句号、问号和叹号分割。现在这个不是一个完美的方案。欢迎建议。同时,我尝试使用
但是在Zotero环境下好像无法运行 |
不需要太复杂,翻译出来即可。本来机器翻译准确度也不是很高 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Environment
Describe the feature request
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
众所周知,CNKI 最新的句子翻译对非会员进行了字数限制,前面也有issue
#196 提到分段翻译来突破这个限制,但是似乎作者没有注意到或者有其他考量,但是由于cnki的翻译确实质量较高,本人也有较高的需求,所以这里重新开了一个issue讨论这个需求.
Why do you need this feature?
A clear and concise description of why you need this feature.
cnki的翻译确实质量较高,本人也有较高的需求
Describe the solution you'd like
The solution you'd like
A clear and concise description of what you want to happen.
由于并不是所有人都需要这个功能,并且按照句号进行分段也许并不能完美分割意群,所以这个功能最好设置为一个可选项
单次翻译上限
初步分段
为句子单词数
/单次翻译上限
段初步分段
中最后一个句号的位置,将这个句号之后的单词移动到下一个初部分段
中初步分段
中单词数再次超过单次翻译上限
,再次确定分段中倒数第二个句子位置,进行同第三步
的移动初步分段
已经低于单次翻译上限
规定的单词数,再对下一个初步分段进行检查
,不满足则反复进行 3&4 步,注意最后一个初步分段
多余的句子请新创建一个分段进行填充,检查后超出'单次翻译上限`则继续添加此外,本方案中的句号如果不足,可以按照以下优先级进行分段判断
句号>>逗号>>空格 >>选择最后一个单词
需要注意的是,该方案还有很多不足,如:
Alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
设置一个提醒弹窗,超过
单次翻译上限
则不予翻译,或者在翻译栏无声提醒Anything else?
No response
The text was updated successfully, but these errors were encountered: