From 1bf3458ca5ce34e9326368636486e8e677a0b3e8 Mon Sep 17 00:00:00 2001 From: wasertech Date: Fri, 10 Mar 2023 16:36:09 +0100 Subject: [PATCH] v0.1.1b2 --- translator/__init__.py | 2 +- translator/main.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/translator/__init__.py b/translator/__init__.py index 32c6a23..f3a189f 100644 --- a/translator/__init__.py +++ b/translator/__init__.py @@ -1,6 +1,6 @@ from translator.translate import Translator -__version__ = "0.1.1b1" +__version__ = "0.1.1b2" LANGS = [ "ace_Arab", diff --git a/translator/main.py b/translator/main.py index cbb5edc..7e0b7d7 100644 --- a/translator/main.py +++ b/translator/main.py @@ -116,6 +116,8 @@ def main(): if Path(output_path).exists() and Path(output_path).is_file(): translated_dataset = load_dataset('text', data_files={'translated': [output_path]}, streaming=False, split="translated", cache_dir=f"{output_path.replace('.txt', f'{_from}.{_to}.tmp.cache')}") translations = translated_dataset['text'] + spinner.info(f"Translated {len(translations)} sentences already.") + spinner.start() else: spinner.info("Not translated any sentences yet.") spinner.start()