Actual label mapping in ECtHR #41
-
[EDIT] This is solved here Hi @iliaschalkidis et al., Always good to se your work :) I want to go deep into the ECtHR dataset a little more. For that I wanted to map the articles to labels in ECtHR. So I adapted this code from one of the discussions, can I use the same for extracting corresponding label mappings to articles? from datasets import load_dataset
train_dataset = load_dataset("lex_glue", 'ecthr_b', split="train")
labels_ids2names = {idx: label_name for idx, label_name in enumerate(train_dataset.features['label'].names)}
# TODO Loop over samples It'll look something like this
|
Beta Was this translation helpful? Give feedback.
Answered by
khatrimann
Jan 7, 2025
Replies: 1 comment
-
Solved at this discussion |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
khatrimann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved at this discussion