Replies: 1 comment
-
Hi @JohnNay, you can try something like this: from datasets import load_dataset
train_dataset = load_dataset("lex_glue", 'ledgar', split="train")
labels_ids2names = {idx: label_name for idx, label_name in enumerate(train_dataset.features['label'].names)}
# TODO Loop over samples |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Where can we find the class labels (human readable strings that map to the integers) for the ledgar data set?
Beta Was this translation helpful? Give feedback.
All reactions