From a297a792569160206657017a6e9667d2409a6144 Mon Sep 17 00:00:00 2001 From: wasertech Date: Mon, 13 Mar 2023 14:14:44 +0100 Subject: [PATCH] v0.3.0b6 --- translator/__init__.py | 2 +- translator/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/translator/__init__.py b/translator/__init__.py index 854f30b..0b0019b 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.0b5" +__version__ = "0.3.0b6" LANGS = get_nllb_lang() diff --git a/translator/main.py b/translator/main.py index c826a01..05fdff4 100644 --- a/translator/main.py +++ b/translator/main.py @@ -33,7 +33,7 @@ def parse_arguments(): argument_parse.add_argument('-m', '--model_id', default="facebook/nllb-200-distilled-600M", help="HuggingFace model ID to use.") argument_parse.add_argument('-p', '--pipeline', default="translation", help="Pipeline task to use.") argument_parse.add_argument('-b', '--batch_size', default=128, type=int, help="Number of sentences to batch for translation.") - argument_parse.add_argument('-n', '--nproc', default=4, type=int, help="Number of process to spawn for filtering untraslated sentences.") + 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.")