This commit is contained in:
rasbt 2024-05-12 09:27:38 -05:00
parent 913662ebeb
commit a0adf0d5d3

View File

@ -236,6 +236,8 @@ if __name__ == "__main__":
pad_token_id = tokenizer.encode(tokenizer.pad_token)
base_path = "."
train_dataset = IMDBDataset(base_path / "train.csv", max_length=256, tokenizer=tokenizer, pad_token_id=pad_token_id)
val_dataset = IMDBDataset(base_path / "val.csv", max_length=256, tokenizer=tokenizer, pad_token_id=pad_token_id)
test_dataset = IMDBDataset(base_path / "test.csv", max_length=256, tokenizer=tokenizer, pad_token_id=pad_token_id)