From 6b78fd267edd32b849c145600fd8c4ede3d49e87 Mon Sep 17 00:00:00 2001 From: wasertech Date: Tue, 14 Mar 2023 12:41:23 +0100 Subject: [PATCH] v0.3.2b2 --- README.md | 7 ++++++- translator/__init__.py | 2 +- translator/main.py | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3772c0c..de98d79 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Locate Translator. Using `translate` from your favorite shell. ```zsh -❯ translate --help +❯ translate help usage: translate [-h] [-v] [-d DIRECTORY] [-S SAVE] [-l MAX_LENGTH] [-m MODEL_ID] [-p PIPELINE] [-b BATCH_SIZE] [-n NPROC] [-e NEPOCH] [-L] [_from] [_to] [sentences ...] @@ -121,6 +121,11 @@ What would you like to translate? Cancelled by user ``` +Get Translator version. +```zsh +❯ translate version +``` + Translate from English in French. ``` ❯ translate eng_Latn fra_Latn "This is French." diff --git a/translator/__init__.py b/translator/__init__.py index 0dba5d2..37437b9 100644 --- a/translator/__init__.py +++ b/translator/__init__.py @@ -1,6 +1,6 @@ from translator.translate import Translator from translator.language import get_nllb_lang -__version__ = "0.3.2b1" +__version__ = "0.3.2b2" LANGS = get_nllb_lang() diff --git a/translator/main.py b/translator/main.py index e97ee5d..8ddbee3 100644 --- a/translator/main.py +++ b/translator/main.py @@ -44,8 +44,8 @@ def parse_arguments(): argument_parse.add_argument('-n', '--nproc', default=4, type=int, help="Number of process(es) to spawn for batch translation.") argument_parse.add_argument('-e', '--nepoch', default=1, type=int, help="Number of epoch(s) to translate batched sentences.") argument_parse.add_argument('-L', '--language_list', action='store_true', help="Show list of languages.") - argument_parse.add_argument('-vv', "--debug", action='store_true', help="File debug info") - argument_parse.add_argument('-i', "--interactive", action='store_false', help="Deactive interactiveness.") + argument_parse.add_argument('-vv', "--debug", action='store_true', help="Show debug info") + argument_parse.add_argument('-i', "--interactive", action='store_false', help="Deactivate interactiveness.") return argument_parse.parse_args(), argument_parse