text_plain_output_5.png text_plain_output_4.png text_plain_output_6.png text_plain_output_3.png text_plain_output_2.png text_plain_output_1.png
from datasets import load_dataset

train_dataset = load_dataset('csv', data_files='train_data_clean.csv')
val_dataset = load_dataset('csv', data_files='val_data_clean.csv')
test_dataset = load_dataset('csv', data_files='test_data_clean.csv')

train_dataset = train_dataset.rename_column('text', 'sentence1')
train_dataset = train_dataset.rename_column('target', 'label')
val_dataset = val_dataset.rename_column('text', 'sentence1')
val_dataset = val_dataset.rename_column('target', 'label')
test_dataset = test_dataset.rename_column('text', 'sentence1')

val_dataset