Skip to content

Commit

Permalink
add padding
Browse files Browse the repository at this point in the history
  • Loading branch information
davebulaval committed Nov 14, 2023
1 parent 66721af commit 29ab854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/training/few_shot_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@


def tokenize_function(example):
return tokenizer(example["original"], example["simplification"], truncation=True)
return tokenizer(example["original"], example["simplification"], truncation=True, padding=True)


tokenized_csmd_dataset = csmd_dataset.map(tokenize_function, batched=True)
Expand Down

0 comments on commit 29ab854

Please sign in to comment.