alive.bar is part of the decentralized social network powered by Mastodon.
你好,欢迎使用 alive.bar 社交媒体实例。 alive.bar 仅仅是一个服务器位于美国的网站,它使用了「长毛象(Mastodon)」服务。

Server stats:

3.1K
active users

Learn more

Henry今日梦见蜗牛🐌

我来安利一个制作双语epub电子书的项目bilingual_book_maker
(不知道有没有被安利过

支持chatGPT DeepL Claude google 彩云的翻译,其中google是最烂但是免费的,其他的需要API,至于API怎么弄,请自行查找

我采用miniconda部署的环境 全程在一个命令行中完成 独立环境 不干扰其他项目

p1是项目给的示例图 p2是我自己写的Windows下小流程 更多选项请参考项目文档

github.com/yihong0618/bilingua

————————小流程文字版

创建项目环境并进入
conda create --name epubtrans python=3.8

conda activate epubtrans

cd ./epubtrans/bilingual_book_maker

拉取项目,并安装依赖
git clone --branch main github.com/yihong0618/bilingua

pip install -r requirements.txt

准备开始!GO!
python make_book.py --book_name "test_books/animal_farm.epub" --openai_key ${openai_key} --model google --test --language zh-hans --proxy 127.0.0.1:xxxxx --translate-tags h1,h2,h3,p,div