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(