Skip to content

Commit 9e6b1a8

Browse files
committed
Split long line
1 parent ba0b914 commit 9e6b1a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

machine/translation/huggingface/hugging_face_nmt_model_trainer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ def preprocess_terms_function(examples):
390390
if train_terms_dataset is not None:
391391
if not isinstance(tokenizer, PreTrainedTokenizerFast):
392392
logger.warning(
393-
f"Adding key terms as partial words is not possible when using the non-fast tokenizer '{type(tokenizer)}'."
393+
f"Adding key terms as partial words is not possible when using \
394+
the non-fast tokenizer '{type(tokenizer)}'."
394395
)
395396
train_terms_dataset = train_terms_dataset.map(
396397
preprocess_terms_function if isinstance(tokenizer, PreTrainedTokenizerFast) else preprocess_function,

0 commit comments

Comments
 (0)