Translator version 0.4.0 Beta 3
This version introduces vulnerability patches by using up to date dependencies and the ability to translate Portable Object (PO) files. Checkout the updated README file about PO translation.
❯ translate --version
ℹ Preparing to translate...
ℹ [Loading...] If this is the first time you load a particular model, it may take a while depending on your hardware, your internet connection and the model size.
ℹ La version du traducteur: 0.4.0b3
❯ translate --help
usage: translate [-h] [-v] [-d DIRECTORY] [--po] [--force] [-S SAVE] [-l MAX_LENGTH] [-m MODEL_ID] [-p PIPELINE]
[-b BATCH_SIZE] [-n NPROC] [-e NEPOCH] [-L] [-vv] [-i]
[_from] [_to] [sentences ...]
Translate [FROM one language] [TO another], [any SENTENCE you would like].
positional arguments:
_from Source language to translate from.
_to Target language to translate towards.
sentences Sentences to translate.
options:
-h, --help show this help message and exit
-v, --version shows the current version of translator
-d, --directory DIRECTORY
Path to directory to translate in batch instead of unique sentence.
--po Translate PO (Portable Object) files instead of text files.
--force Force translation ignoring cache (text files) or translate all entries including translated
ones (PO files).
-S, --save SAVE Path to text file to save translations.
-l, --max_length MAX_LENGTH
Max length of output.
-m, --model_id MODEL_ID
HuggingFace model ID to use.
-p, --pipeline PIPELINE
Pipeline task to use.
-b, --batch_size BATCH_SIZE
Number of sentences to batch for translation.
-n, --nproc NPROC Number of process(es) to spawn for batch translation.
-e, --nepoch NEPOCH Number of epoch(s) to translate batched sentences.
-L, --language_list Show list of languages.
-vv, --debug Show debug info
-i, --interactive Deactivate interactiveness.Release Notes
What's Changed
- Add PO file translation with multi-language support, target language detection, and conflicting flags validation by @Copilot in #10
New Contributors
- @Copilot made their first contribution in #10
Full Changelog: v0.3.4b4...v0.4.0b3