Skip to content

Shantom/qqTranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简介

本脚本意为方便学生毕设进行外文文献的翻译,用户需自行申请API使用,用户可校正机翻后的文本,脚本最后将用户校正后的翻译件输出。

使用步骤

  1. 使用了腾讯翻译官的API,用户请进入腾讯云 ,自行申请API,目前是免费的,申请得到secretID和secretKey请保存在同目录的keys.txt文件(没有请自行创建)。
  2. 将语句通顺的英文放入同目录的source.txt中,使用Python3 运行preprocess.py和process.py得到tobechecked.md文件。
python3 preprocess.py
python3 process.py
  1. 用户在tobechecked.md文件中进行译文的校正,不要删除段尾标记^p。
  2. 校正完毕后使用Python3运行postprocess.py,即可得到完整的翻译件target.md。
python3 postprocess.py

About

A translator helping do translations with QQ's API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages