From 7f7d8e9186d77b9e3220ced9b1f4b5f319999f48 Mon Sep 17 00:00:00 2001 From: John Lambert Date: Mon, 20 Nov 2023 12:55:48 -0500 Subject: [PATCH] Linting error --- machine/translation/huggingface/hugging_face_nmt_engine.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/machine/translation/huggingface/hugging_face_nmt_engine.py b/machine/translation/huggingface/hugging_face_nmt_engine.py index 8191075..ad1418c 100644 --- a/machine/translation/huggingface/hugging_face_nmt_engine.py +++ b/machine/translation/huggingface/hugging_face_nmt_engine.py @@ -48,7 +48,8 @@ def __init__( and src_lang not in additional_special_tokens ): raise ValueError( - f"'{src_lang}' is not a valid language code. This error can happen when there is no matching training data and the language code is not in the NLLB-200." + f"'{src_lang}' is not a valid language code. This error can happen when " + + "there is no matching training data and the language code is not in the NLLB-200." ) if ( @@ -57,7 +58,8 @@ def __init__( and tgt_lang not in additional_special_tokens ): raise ValueError( - f"'{tgt_lang}' is not a valid language code. This error can happen when there is no matching training data and the language code is not in the NLLB-200." + f"'{tgt_lang}' is not a valid language code. This error can happen when " + + "there is no matching training data and the language code is not in the NLLB-200." ) self._pipeline = _TranslationPipeline(