Metadata-Version: 2.3
Name: epub-translator
Version: 0.0.1
Summary: Translate the epub book using LLM. The translated book will retain the original text and list the translated text side by side with the original text.
License: MIT
Author: Tao Zeyu
Author-email: i@taozeyu.com
Maintainer: Tao Zeyu
Maintainer-email: i@taozeyu.com
Requires-Python: >=3.10,<3.13
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: langchain (==0.3.23)
Requires-Dist: langchain-openai (==0.3.13)
Requires-Dist: langid (>=1.1.6,<2.0.0)
Requires-Dist: lxml (>=6.0.0,<7.0.0)
Requires-Dist: resource-segmentation (==0.0.1)
Requires-Dist: spacy (>=3.8.7,<4.0.0)
Requires-Dist: tiktoken (>=0.9.0,<0.10.0)
Requires-Dist: tqdm (>=4.67.1,<5.0.0)
Project-URL: Homepage, https://hub.oomol.com/package/book-translator
Project-URL: Repository, https://github.com/oomol-flows/books-translator
Description-Content-Type: text/markdown

# epub-translator

Translate the epub book using LLM. The translated book will retain the original text and list the translated text side by side with the original text.

## Field Description

- `file`: the epub file to be translated.
- `title`: the title of the book to be translated (original language)
- `max_translating_group`: the maximum amount of translation text submitted each time. Books will be submitted in chunks during translation, and this value will limit the maximum length of each chunk.
- `max_translating_group_unit`: the unit of the `max_translating_group_unit`.
- `source`: the language of the book to be translated.
- `target`: the target language you want to translate it into.
- `llm_api`: the LLM API format used for translation.
- `model`: the model used for translation
- `url`: the URL of the LLM
- `api_key`: the Key of the LLM
- `temperature`: the temperature of the LLM, which is a parameter used to control the randomness of the generated text. In simple terms, the lower the temperature value, the more certain and conservative the text generated by the model. The higher the temperature value, the more random and diverse the text generated by the model.
- `timeout`: the request timeout, in seconds.
- `binary`: the translated target epub file content.
