Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:

Actual label mapping in ECtHR

#7
by khatrimann - opened

[NOTE] Same query as the GitHub lex-glue

Hi @kiddothe2b 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

'2' -> 0
'3' -> 1
'5' -> 2
.
.
.
'P1-1' -> 9
CoAStaL NLP Group org

Hi @khatrimann ,

Yes, that's exactly the mapping.

Hi @khatrimann ,

Yes, that's exactly the mapping.

Thanks for the clarification

khatrimann changed discussion status to closed

Sign up or log in to comment