text_plain_output_1.png
import pandas as pd

folder_path_train = '/content/drive/MyDrive/HMD_project/train.jsonl'
folder_path_dev = '/content/drive/MyDrive/HMD_project/dev.jsonl'
df_train = pd.read_json(folder_path_train, lines=True)
df_dev = pd.read_json(folder_path_dev, lines=True)

df_train['label'].value_counts().plot(kind='bar', figsize=(6, 6), width=0.2, title='Training data')
print('Distribution of training dataset\n', df_train.label.value_counts(), '\n')
print('Distribution of validation dataset\n', df_dev.label.value_counts())