10

Translator Chain - 面向格式化语言文档的命令行 AI 翻译工具

 1 year ago
source link: https://www.v2ex.com/t/938010
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  分享创造

Translator Chain - 面向格式化语言文档的命令行 AI 翻译工具

  joyqi · joyqi · 2 小时 23 分钟前 · 92 次点击

最近刚撸的一个 AI 工具,利用 Open AI 的 GPT API 翻译格式化的语言文件:

  1. 完全命令行,方便整合进 CI/CD 工具链
  2. 自动解析格式化语言文档
  3. 自动按 GPT 的最大 Token 限制分割语言文档,分开翻译后再自动合并
  4. 自动比对已经翻译好的文档,跳过已翻译的词条,只翻译未翻译的词条

https://github.com/joyqi/translatorchain

目前只支持json格式的key-value语言文档,但是格式解析器和结构解析器都已经抽象出来,可以支持接入任意格式的文档,欢迎大家贡献!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK