jd-rodriguezp1234 commited on
Commit
cdffd67
·
verified ·
1 Parent(s): 8d186ca

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +147 -0
README.md ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - es
5
+ task_categories:
6
+ - text-classification
7
+ task_ids:
8
+ - natural-language-inference
9
+ pretty_name: ESNLIR — human-annotated AL evaluation set (1,695 pairs)
10
+ size_categories:
11
+ - 1K<n<10K
12
+ tags:
13
+ - nli
14
+ - spanish
15
+ - causal
16
+ - esnlir
17
+ - active-learning
18
+ - human-annotated
19
+ configs:
20
+ - config_name: default
21
+ data_files:
22
+ - split: test
23
+ path: test_full.jsonl
24
+ ---
25
+
26
+ # ESNLIR — human-annotated evaluation set
27
+
28
+ **1,695 human-annotated premise–hypothesis pairs** spanning 24 domains and 8 genres, built as the
29
+ evaluation set for active-learning experiments on the ESNLIR corpus.
30
+
31
+ > **Active Learning for Spanish Natural Language Inference**
32
+ > Diego Ortiz, Johan R. Portela, Ruben Manrique — Universidad de los Andes, Bogotá
33
+
34
+ Code: [`jd-rodriguezp1234/esnlir-active-learning`](https://github.com/jd-rodriguezp1234/esnlir-active-learning) ·
35
+ Corpus: [`Flaglab/ESNLIR-dataset`](https://huggingface.co/datasets/Flaglab/ESNLIR-dataset)
36
+
37
+ ## Labels
38
+
39
+ Four inference relations. Each instance is a pair of **adjacent sentences from a single document**:
40
+ the premise precedes a discourse connector, the hypothesis follows it, and the connector is removed
41
+ so the relation has to be recovered from the two sentences alone.
42
+
43
+ | label | n | share |
44
+ |---|---|---|
45
+ | `neutral` | 634 | 37.4% |
46
+ | `entailment` | 379 | 22.4% |
47
+ | `reasoning` | 370 | 21.8% |
48
+ | `contrasting` | 312 | 18.4% |
49
+
50
+ Classes are **uneven by design** — this is a natural sample, not a balanced one. Report **macro F1**
51
+ rather than accuracy.
52
+
53
+ `reasoning` (cause–effect, e.g. *en consecuencia*, *por consiguiente*) is ESNLIR's departure from
54
+ the usual three-class schema, and empirically the hardest of the four.
55
+
56
+ ## Genres and domains
57
+
58
+ | genre | n | | genre | n |
59
+ |---|---|---|---|---|
60
+ | `theses` | 614 | | `articles` | 132 |
61
+ | `books` | 315 | | `legal` | 112 |
62
+ | `comments` | 234 | | `clinical` | 50 |
63
+ | `news` | 198 | | `talks` | 40 |
64
+
65
+ 24 distinct domains. The five largest: literature (17.2%), web comments (13.8%), Spanish
66
+ public-domain news (8.0%), encyclopedia (7.8%), engineering theses (7.0%). The set deliberately
67
+ spans formal registers (legal, clinical) and informal ones (web comments, tweets).
68
+
69
+ ## Fields
70
+
71
+ ```json
72
+ {"sentence_1": "se pueden retener 10 pasaportes alemanes al mismo tiempo",
73
+ "sentence_2": "estos pasaportes adicionales son válidos por solo 6 años, ...",
74
+ "connector": "sin embargo,", "connector_type": "contrasting", "connection_type": "contrasting",
75
+ "extraction_strategy": "linking_phrase", "distance": 1.0,
76
+ "sentence_1_paragraph": 1, "sentence_1_position": 55,
77
+ "sentence_2_paragraph": 1, "sentence_2_position": 56,
78
+ "id": "esarticles__eswiki__...", "dataset": "esarticles__eswiki",
79
+ "genre": "articles", "domain": "encyclopedia"}
80
+ ```
81
+
82
+ `connector_type` (connector-derived) and `connection_type` (human) are **identical on all 1,695
83
+ rows** — the released set contains only pairs where annotation and connector agreed, so either
84
+ column can be used as the gold label.
85
+
86
+ Note `id` identifies the source article, not the pair, and is not unique. Join on
87
+ `(sentence_1, sentence_2)`.
88
+
89
+ ## How candidates were chosen
90
+
91
+ Candidates were sampled by **model confidence** before annotation: a preliminary pass with the
92
+ released ESNLIR XLM-RoBERTa checkpoint binned them into four confidence strata (high, medium, low,
93
+ none), concentrating annotation effort on uncertain instances.
94
+
95
+ This has a consequence worth stating plainly. The set is **enriched for instances that checkpoint
96
+ finds hard**, so that model's own score on it is biased downward. It still ranks highest among all
97
+ systems evaluated, which is what makes the comparison robust to the selection effect — but this is
98
+ not an i.i.d. sample of ESNLIR, and absolute numbers on it are not comparable to numbers on the
99
+ full ESNLIR test split.
100
+
101
+ ## Reported results
102
+
103
+ Macro F1 on this set, from the active-learning paper:
104
+
105
+ | encoder | method | labels used | macro F1 |
106
+ |---|---|---|---|
107
+ | XLM-R | full supervision | 1,000k | **0.822** |
108
+ | XLM-R | NegE (best, iter 5) | 610k | 0.796 |
109
+ | XLM-R | LER (final, iter 7) | 800k | 0.789 |
110
+ | Bertin | full supervision | 1,000k | 0.811 |
111
+ | Bertin | NegE (best, iter 6) | 710k | 0.764 |
112
+ | Bertin | LER (final, iter 7) | 800k | 0.754 |
113
+
114
+ Active learning reaches 95.5% of full supervision with 61% of the labels, and NegE and LER are
115
+ indistinguishable — since LER acquires uniformly at random from a filtered pool, energy-based
116
+ acquisition shows no measurable advantage over near-random selection.
117
+
118
+ ## Usage
119
+
120
+ ```python
121
+ from datasets import load_dataset
122
+
123
+ ds = load_dataset("Flaglab/esnlir-al-annotated-test", split="test")
124
+ print(ds[0]["sentence_1"], "|", ds[0]["connection_type"])
125
+ ```
126
+
127
+ ## Related
128
+
129
+ | | |
130
+ |---|---|
131
+ | [`Flaglab/ESNLIR-dataset`](https://huggingface.co/datasets/Flaglab/ESNLIR-dataset) | the corpus this is drawn from |
132
+ | [`Flaglab/esnlir-al-trajectories`](https://huggingface.co/datasets/Flaglab/esnlir-al-trajectories) | per-round AL metrics and pool indices |
133
+ | [`Flaglab/ESNLIR-AL-XLM-RoBERTa-NegE`](https://huggingface.co/Flaglab/ESNLIR-AL-XLM-RoBERTa-NegE) | best AL checkpoint |
134
+
135
+ ## Citation
136
+
137
+ ```bibtex
138
+ @misc{ortiz_esnlir_active_learning,
139
+ author = {Ortiz, Diego and Portela, Johan R. and Manrique, Ruben},
140
+ title = {Active Learning for Spanish Natural Language Inference},
141
+ school = {Universidad de los Andes, Bogot{\'a}, Colombia},
142
+ year = {2026},
143
+ }
144
+ ```
145
+
146
+ The corpus is ESNLIR ([Portela, Pérez-Terán & Manrique, 2026](https://doi.org/10.1007/978-3-032-07175-0_23)),
147
+ a separate project with its own code and paper.