fredxlpy Claude Opus 5.5 commited on
Commit
3f37054
·
1 Parent(s): baeb87c

Add LETZ v2.0

Browse files

LETZ-SYN, LETZ-WoT and the new LETZ-TOP, built from the LOD release of
27 July 2026 with an improved recipe. v2.0 takes the plain config names and is
loaded by default; the paper data stays available as LETZ-SYN-v1.0 and
LETZ-WoT-v1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

.gitattributes CHANGED
@@ -53,3 +53,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
 
 
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
+ *.jsonl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -2,14 +2,43 @@
2
  license: cc-by-4.0
3
  task_categories:
4
  - text-classification
 
5
  language:
6
  - lb
 
 
 
 
 
7
  size_categories:
8
- - 10K<n<100K
9
- #source_datasets:
10
- #- Luxembourg Online Dictionary (LOD)
11
- configs: # Optional. This can be used to pass additional parameters to the dataset loader, such as `data_files`, `data_dir`, and any builder-specific parameters
12
- - config_name: LETZ-SYN # Example: default
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  data_files:
14
  - split: train
15
  path: LETZ-SYN/train.json
@@ -17,14 +46,14 @@ configs: # Optional. This can be used to pass additional parameters to the data
17
  path: LETZ-SYN/val.json
18
  - split: test
19
  path: LETZ-SYN/test.json
20
- - config_name: LETZ-WoT # Example: default
21
  data_files:
22
  - split: train
23
  path: LETZ-WoT/train.json
24
  - split: validation
25
  path: LETZ-WoT/val.json
26
  - split: test
27
- path: LETZ-WoT/test.json
28
  ---
29
 
30
  # Dataset Card for Luxembourgish Entailment-based Topic classification via Zero-shot learning (LETZ)
@@ -32,13 +61,77 @@ configs: # Optional. This can be used to pass additional parameters to the data
32
  ## Dataset Summary
33
  The datasets for **L**uxembourgish **E**ntailment-based **T**opic classification via **Z**ero-shot learning (**LETZ**) can be used to adapt language models to zero-shot classification in Luxembourgish. It leverages data from the [*Luxembourg Online Dictionary*](https://lod.lu) to provide relevant topic classification examples in Luxembourgish. The LETZ datasets were created to address the limitations of using Natural Language Inference (NLI) datasets for zero-shot classification in low-resource languages. Specifically, they aim to improve topic classification performance by providing more relevant and accessible data through dictionary entries.
34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  ## Columns in the Dataset
36
 
37
- Each dataset includes the following columns:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
- * **Text**: The Luxembourgish sentence or phrase.
40
- * **Label**: The potentially associated topic label.
41
- * **Class**: A binary indicator where “1” denotes relevance (entailment) and “0” denotes irrelevance (non-entailment).
42
 
43
  ## Dataset Description
44
  - **Repository:** [fredxlpy/LETZ](https://github.com/fredxlpy/LETZ)
@@ -46,7 +139,7 @@ Each dataset includes the following columns:
46
  - **Source Data** [Luxembourg Online Dictionary](https://data.public.lu/en/datasets/letzebuerger-online-dictionnaire-lod-linguistesch-daten/)
47
 
48
  ## Source Data
49
- The original [Luxembourg Online Dictionary](https://lod.lu) (LOD) data can be downloaded from the [Luxembourgish Open Data Platform](https://data.public.lu/fr/datasets/letzebuerger-online-dictionnaire-lod-linguistesch-daten/) or can be accessed via their [API](https://data.public.lu/fr/datasets/letzebuerger-online-dictionnaire-lod-public-api/). All of their data is available under a [Creative Commons Zero (CC0)](https://creativecommons.org/publicdomain/zero/1.0/) license.
50
 
51
  ## Citation Information
52
  ```
@@ -67,4 +160,3 @@ The original [Luxembourg Online Dictionary](https://lod.lu) (LOD) data can be do
67
  pages = "97--104"
68
  }
69
  ```
70
-
 
2
  license: cc-by-4.0
3
  task_categories:
4
  - text-classification
5
+ - zero-shot-classification
6
  language:
7
  - lb
8
+ - de
9
+ - fr
10
+ - en
11
+ - pt
12
+ - nl
13
  size_categories:
14
+ - 100K<n<1M
15
+ configs:
16
+ - config_name: LETZ-SYN
17
+ data_files:
18
+ - split: train
19
+ path: v2.0/LETZ-SYN/train.jsonl
20
+ - split: validation
21
+ path: v2.0/LETZ-SYN/val.jsonl
22
+ - split: test
23
+ path: v2.0/LETZ-SYN/test.jsonl
24
+ - config_name: LETZ-WoT
25
+ data_files:
26
+ - split: train
27
+ path: v2.0/LETZ-WoT/train.jsonl
28
+ - split: validation
29
+ path: v2.0/LETZ-WoT/val.jsonl
30
+ - split: test
31
+ path: v2.0/LETZ-WoT/test.jsonl
32
+ - config_name: LETZ-TOP
33
+ default: true
34
+ data_files:
35
+ - split: train
36
+ path: v2.0/LETZ-TOP/train.jsonl
37
+ - split: validation
38
+ path: v2.0/LETZ-TOP/val.jsonl
39
+ - split: test
40
+ path: v2.0/LETZ-TOP/test.jsonl
41
+ - config_name: LETZ-SYN-v1.0
42
  data_files:
43
  - split: train
44
  path: LETZ-SYN/train.json
 
46
  path: LETZ-SYN/val.json
47
  - split: test
48
  path: LETZ-SYN/test.json
49
+ - config_name: LETZ-WoT-v1.0
50
  data_files:
51
  - split: train
52
  path: LETZ-WoT/train.json
53
  - split: validation
54
  path: LETZ-WoT/val.json
55
  - split: test
56
+ path: LETZ-WoT/test.json
57
  ---
58
 
59
  # Dataset Card for Luxembourgish Entailment-based Topic classification via Zero-shot learning (LETZ)
 
61
  ## Dataset Summary
62
  The datasets for **L**uxembourgish **E**ntailment-based **T**opic classification via **Z**ero-shot learning (**LETZ**) can be used to adapt language models to zero-shot classification in Luxembourgish. It leverages data from the [*Luxembourg Online Dictionary*](https://lod.lu) to provide relevant topic classification examples in Luxembourgish. The LETZ datasets were created to address the limitations of using Natural Language Inference (NLI) datasets for zero-shot classification in low-resource languages. Specifically, they aim to improve topic classification performance by providing more relevant and accessible data through dictionary entries.
63
 
64
+ The repository contains two versions. **v2.0 is the current version** and uses the plain config names:
65
+
66
+ | version | configs | built from | notes |
67
+ |---|---|---|---|
68
+ | **v2.0** | `LETZ-SYN`, `LETZ-WoT`, `LETZ-TOP` | LOD release of July 2026 | improved recipe and a new subset with real topic labels |
69
+ | **v1.0** | `LETZ-SYN-v1.0`, `LETZ-WoT-v1.0` | LOD release of June 2023 | the data used in the paper (unchanged) |
70
+
71
+ ```python
72
+ from datasets import load_dataset
73
+
74
+ letz_top = load_dataset("fredxlpy/LETZ") # default: LETZ-TOP (v2.0)
75
+ letz_syn = load_dataset("fredxlpy/LETZ", "LETZ-SYN") # v2.0; also "LETZ-WoT"
76
+ ```
77
+
78
+ The zero-shot classifier [fredxlpy/LETZClassify](https://huggingface.co/fredxlpy/LETZClassify) was trained on all three v2.0 subsets.
79
+
80
+ ### Reproducing the paper (v1.0)
81
+
82
+ The data used in the paper is kept unchanged as `LETZ-SYN-v1.0` and `LETZ-WoT-v1.0`:
83
+
84
+ ```python
85
+ letz_syn_v1 = load_dataset("fredxlpy/LETZ", "LETZ-SYN-v1.0")
86
+ letz_wot_v1 = load_dataset("fredxlpy/LETZ", "LETZ-WoT-v1.0")
87
+ ```
88
+
89
+ ## Subsets
90
+
91
+ * **LETZ-SYN**: a Luxembourgish example sentence from the dictionary, paired with a Luxembourgish **synonym** of the word it illustrates (positive) or with an unrelated word (negative).
92
+ * **LETZ-WoT** (*Word Translation*): the same kind of example sentence, paired with a **translation** of the word into German, French, English, Portuguese and, in v2.0, Dutch.
93
+ * **LETZ-TOP** (v2.0 only): the example sentence paired with a **topic label** in Luxembourgish (63 labels such as *Sport*, *Fussball*, *Gesondheet*, *Iessen an Drénken*, *Politik*). The topics are derived from the dictionary's thematic categories and meaning domains, at two levels: each positive sentence has a fine label (e.g. *Fussball*) and a coarse label (e.g. *Sport*).
94
+
95
  ## Columns in the Dataset
96
 
97
+ v1.0 (`LETZ-SYN-v1.0`, `LETZ-WoT-v1.0`):
98
+
99
+ * **text**: The Luxembourgish sentence or phrase.
100
+ * **label**: The potentially associated topic label.
101
+ * **class**: A binary indicator where “1” denotes relevance (entailment) and “0” denotes irrelevance (non-entailment).
102
+ * **lang** (LETZ-WoT only): language of the label.
103
+
104
+ v2.0 has the same columns plus provenance:
105
+
106
+ * **text**, **label**, **class**: as above.
107
+ * **lang**: language of the label (`lb` for LETZ-SYN and LETZ-TOP; `de`, `fr`, `en`, `pt`, `nl` for LETZ-WoT).
108
+ * **lemma**: the dictionary headword the sentence illustrates.
109
+ * **entry_id**, **meaning_id**: IDs of the LOD entry and of the meaning the sentence belongs to.
110
+
111
+ In v2.0, every positive pair (`class` 1) has exactly one negative pair (`class` 0) with the same text.
112
+
113
+ ## Version 2.0
114
+
115
+ ### What changed
116
+
117
+ 1. **Disjoint splits.** No sentence occurs in more than one split. Sentences and lemmas that are linked to each other are kept in the same split, and reversed synonym pairs (A→B in train, B→A in test) are removed from validation and test.
118
+ 2. **Same lexical filter for positives and negatives.** Both positive and negative labels must be lexically distant from the sentence, so lexical overlap does not reveal the class.
119
+ 3. **Same label distribution for positives and negatives.** Negatives are drawn from the pool of positive labels of the same subset (and, for LETZ-WoT, the same language).
120
+ 4. **No false negatives.** Synonyms and translations of the same word (in any of its meanings) are never used as negatives, the same negative is never used twice for a sentence, and for LETZ-TOP, negatives come from a different coarse topic.
121
+ 5. **Literal usage only.** Idiomatic examples and vulgar, pejorative, ironic or obsolete usages are dropped, and every example must contain its headword.
122
+ 6. **Balance.** At most 5 examples per meaning, with at most 3 synonyms (LETZ-SYN) or 2 translations per language (LETZ-WoT) each.
123
+ 7. **New subset, LETZ-TOP**, with real topic labels (see above). Topics come from the domain of a meaning and, for entries with a single meaning only (where it is unambiguous), from the entry's thematic categories.
124
+ 8. **Dutch translations**, new in the LOD, are added to LETZ-WoT.
125
+
126
+ ### Size (pairs; half of each split is positive)
127
+
128
+ | subset | train | validation | test |
129
+ |---|---|---|---|
130
+ | LETZ-SYN | 9,224 | 602 | 602 |
131
+ | LETZ-WoT | 160,542 | 20,154 | 20,140 |
132
+ | LETZ-TOP | 19,538 | 2,242 | 2,238 |
133
 
134
+ For comparison, v1.0 has 11,822 / 1,478 / 1,478 (LETZ-SYN-v1.0) and 39,132 / 4,892 / 4,892 (LETZ-WoT-v1.0) pairs.
 
 
135
 
136
  ## Dataset Description
137
  - **Repository:** [fredxlpy/LETZ](https://github.com/fredxlpy/LETZ)
 
139
  - **Source Data** [Luxembourg Online Dictionary](https://data.public.lu/en/datasets/letzebuerger-online-dictionnaire-lod-linguistesch-daten/)
140
 
141
  ## Source Data
142
+ The original [Luxembourg Online Dictionary](https://lod.lu) (LOD) data can be downloaded from the [Luxembourgish Open Data Platform](https://data.public.lu/fr/datasets/letzebuerger-online-dictionnaire-lod-linguistesch-daten/) or can be accessed via their [API](https://data.public.lu/fr/datasets/letzebuerger-online-dictionnaire-lod-public-api/). All of their data is available under a [Creative Commons Zero (CC0)](https://creativecommons.org/publicdomain/zero/1.0/) license. v1.0 is built from the June 2023 release, v2.0 from the release of 27 July 2026.
143
 
144
  ## Citation Information
145
  ```
 
160
  pages = "97--104"
161
  }
162
  ```
 
v2.0/LETZ-SYN/test.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cfb730068297ddd256963bf4d22268a9dd7c9d8408c4875502b7cf14680be21
3
+ size 126330
v2.0/LETZ-SYN/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af1d1534f7fc8db8a5723df6c2c1f7123fd7d5c006cc4c873ebd621996b80a6f
3
+ size 1873269
v2.0/LETZ-SYN/val.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6b24059144ec7d6fe5a7decfc0f819305bdc78ef49cdb3ac1ada5d74200fe29
3
+ size 127247
v2.0/LETZ-TOP/test.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9388df16077f9c1777da577a12920529c749dc100e54445b5ab87efd7eed4864
3
+ size 472754
v2.0/LETZ-TOP/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a236e7390ef8a5e519a6d16dbd69f83b3b2de6bbabb83db8dfb2378b9481b74
3
+ size 4057833
v2.0/LETZ-TOP/val.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5282508249850fea867304bfea1df80846469f3da1e97a0d86f6913ce45735de
3
+ size 465291
v2.0/LETZ-WoT/test.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94a63fb8737eff588b58324fe2fbd1795303ff375fffdf3dab112a5eb1dbfd0e
3
+ size 4245919
v2.0/LETZ-WoT/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9570f5e38ad4acb48171242ac809083fb861039db4f251695c4277f07de510ac
3
+ size 32570758
v2.0/LETZ-WoT/val.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f35e04716111c88dfae77cfb39f0c1f04bf05e9b3bb02083cf299e3176d55079
3
+ size 4242263