Datasets:

Modalities:
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
pandas
License:
Samoed commited on
Commit
3047317
·
verified ·
1 Parent(s): c71d432

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +169 -0
README.md CHANGED
@@ -1,4 +1,13 @@
1
  ---
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
  features:
4
  - name: text
@@ -26,4 +35,164 @@ configs:
26
  path: data/validation-*
27
  - split: test
28
  path: data/test-*
 
 
 
29
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - derived
4
+ language:
5
+ - nob
6
+ license: cc-by-4.0
7
+ multilinguality: monolingual
8
+ task_categories:
9
+ - text-classification
10
+ task_ids: []
11
  dataset_info:
12
  features:
13
  - name: text
 
35
  path: data/validation-*
36
  - split: test
37
  path: data/test-*
38
+ tags:
39
+ - mteb
40
+ - text
41
  ---
42
+ <!-- adapted from https://github.com/huggingface/huggingface_hub/blob/v0.30.2/src/huggingface_hub/templates/datasetcard_template.md -->
43
+
44
+ <div align="center" style="padding: 40px 20px; background-color: white; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); max-width: 600px; margin: 0 auto;">
45
+ <h1 style="font-size: 3.5rem; color: #1a1a1a; margin: 0 0 20px 0; letter-spacing: 2px; font-weight: 700;">NorwegianParliamentClassification</h1>
46
+ <div style="font-size: 1.5rem; color: #4a4a4a; margin-bottom: 5px; font-weight: 300;">An <a href="https://github.com/embeddings-benchmark/mteb" style="color: #2c5282; font-weight: 600; text-decoration: none;" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">MTEB</a> dataset</div>
47
+ <div style="font-size: 0.9rem; color: #2c5282; margin-top: 10px;">Massive Text Embedding Benchmark</div>
48
+ </div>
49
+
50
+ Norwegian parliament speeches annotated for sentiment
51
+
52
+ | | |
53
+ |---------------|---------------------------------------------|
54
+ | Task category | t2c |
55
+ | Domains | Government, Spoken |
56
+ | Reference | https://huggingface.co/datasets/NbAiLab/norwegian_parliament |
57
+
58
+
59
+ ## How to evaluate on this task
60
+
61
+ You can evaluate an embedding model on this dataset using the following code:
62
+
63
+ ```python
64
+ import mteb
65
+
66
+ task = mteb.get_tasks(["NorwegianParliamentClassification"])
67
+ evaluator = mteb.MTEB(task)
68
+
69
+ model = mteb.get_model(YOUR_MODEL)
70
+ evaluator.run(model)
71
+ ```
72
+
73
+ <!-- Datasets want link to arxiv in readme to autolink dataset with paper -->
74
+ To learn more about how to run models on `mteb` task check out the [GitHub repitory](https://github.com/embeddings-benchmark/mteb).
75
+
76
+ ## Citation
77
+
78
+ If you use this dataset, please cite the dataset as well as [mteb](https://github.com/embeddings-benchmark/mteb), as this dataset likely includes additional processing as a part of the [MMTEB Contribution](https://github.com/embeddings-benchmark/mteb/tree/main/docs/mmteb).
79
+
80
+ ```bibtex
81
+
82
+ @inproceedings{kummervold-etal-2021-operationalizing,
83
+ abstract = {In this work, we show the process of building a large-scale training set from digital and digitized collections at a national library. The resulting Bidirectional Encoder Representations from Transformers (BERT)-based language model for Norwegian outperforms multilingual BERT (mBERT) models in several token and sequence classification tasks for both Norwegian Bokm{\aa}l and Norwegian Nynorsk. Our model also improves the mBERT performance for other languages present in the corpus such as English, Swedish, and Danish. For languages not included in the corpus, the weights degrade moderately while keeping strong multilingual properties. Therefore, we show that building high-quality models within a memory institution using somewhat noisy optical character recognition (OCR) content is feasible, and we hope to pave the way for other memory institutions to follow.},
84
+ address = {Reykjavik, Iceland (Online)},
85
+ author = {Kummervold, Per E and
86
+ De la Rosa, Javier and
87
+ Wetjen, Freddy and
88
+ Brygfjeld, Svein Arne},
89
+ booktitle = {Proceedings of the 23rd Nordic Conference on Computational Linguistics (NoDaLiDa)},
90
+ editor = {Dobnik, Simon and
91
+ {\O}vrelid, Lilja},
92
+ month = may # { 31--2 } # jun,
93
+ pages = {20--29},
94
+ publisher = {Link{\"o}ping University Electronic Press, Sweden},
95
+ title = {Operationalizing a National Digital Library: The Case for a {N}orwegian Transformer Model},
96
+ url = {https://aclanthology.org/2021.nodalida-main.3},
97
+ year = {2021},
98
+ }
99
+
100
+
101
+ @article{enevoldsen2025mmtebmassivemultilingualtext,
102
+ title={MMTEB: Massive Multilingual Text Embedding Benchmark},
103
+ author={Kenneth Enevoldsen and Isaac Chung and Imene Kerboua and Márton Kardos and Ashwin Mathur and David Stap and Jay Gala and Wissam Siblini and Dominik Krzemiński and Genta Indra Winata and Saba Sturua and Saiteja Utpala and Mathieu Ciancone and Marion Schaeffer and Gabriel Sequeira and Diganta Misra and Shreeya Dhakal and Jonathan Rystrøm and Roman Solomatin and Ömer Çağatan and Akash Kundu and Martin Bernstorff and Shitao Xiao and Akshita Sukhlecha and Bhavish Pahwa and Rafał Poświata and Kranthi Kiran GV and Shawon Ashraf and Daniel Auras and Björn Plüster and Jan Philipp Harries and Loïc Magne and Isabelle Mohr and Mariya Hendriksen and Dawei Zhu and Hippolyte Gisserot-Boukhlef and Tom Aarsen and Jan Kostkan and Konrad Wojtasik and Taemin Lee and Marek Šuppa and Crystina Zhang and Roberta Rocca and Mohammed Hamdy and Andrianos Michail and John Yang and Manuel Faysse and Aleksei Vatolin and Nandan Thakur and Manan Dey and Dipam Vasani and Pranjal Chitale and Simone Tedeschi and Nguyen Tai and Artem Snegirev and Michael Günther and Mengzhou Xia and Weijia Shi and Xing Han Lù and Jordan Clive and Gayatri Krishnakumar and Anna Maksimova and Silvan Wehrli and Maria Tikhonova and Henil Panchal and Aleksandr Abramov and Malte Ostendorff and Zheng Liu and Simon Clematide and Lester James Miranda and Alena Fenogenova and Guangyu Song and Ruqiya Bin Safi and Wen-Ding Li and Alessia Borghini and Federico Cassano and Hongjin Su and Jimmy Lin and Howard Yen and Lasse Hansen and Sara Hooker and Chenghao Xiao and Vaibhav Adlakha and Orion Weller and Siva Reddy and Niklas Muennighoff},
104
+ publisher = {arXiv},
105
+ journal={arXiv preprint arXiv:2502.13595},
106
+ year={2025},
107
+ url={https://arxiv.org/abs/2502.13595},
108
+ doi = {10.48550/arXiv.2502.13595},
109
+ }
110
+
111
+ @article{muennighoff2022mteb,
112
+ author = {Muennighoff, Niklas and Tazi, Nouamane and Magne, Lo{\"\i}c and Reimers, Nils},
113
+ title = {MTEB: Massive Text Embedding Benchmark},
114
+ publisher = {arXiv},
115
+ journal={arXiv preprint arXiv:2210.07316},
116
+ year = {2022}
117
+ url = {https://arxiv.org/abs/2210.07316},
118
+ doi = {10.48550/ARXIV.2210.07316},
119
+ }
120
+ ```
121
+
122
+ # Dataset Statistics
123
+ <details>
124
+ <summary> Dataset Statistics</summary>
125
+
126
+ The following code contains the descriptive statistics from the task. These can also be obtained using:
127
+
128
+ ```python
129
+ import mteb
130
+
131
+ task = mteb.get_task("NorwegianParliamentClassification")
132
+
133
+ desc_stats = task.metadata.descriptive_stats
134
+ ```
135
+
136
+ ```json
137
+ {
138
+ "test": {
139
+ "num_samples": 1200,
140
+ "number_of_characters": 2260808,
141
+ "number_texts_intersect_with_train": 1,
142
+ "min_text_length": 26,
143
+ "average_text_length": 1884.0066666666667,
144
+ "max_text_length": 31458,
145
+ "unique_text": 1200,
146
+ "unique_labels": 2,
147
+ "labels": {
148
+ "1": {
149
+ "count": 600
150
+ },
151
+ "0": {
152
+ "count": 600
153
+ }
154
+ }
155
+ },
156
+ "validation": {
157
+ "num_samples": 1200,
158
+ "number_of_characters": 2293204,
159
+ "number_texts_intersect_with_train": 1,
160
+ "min_text_length": 33,
161
+ "average_text_length": 1911.0033333333333,
162
+ "max_text_length": 30118,
163
+ "unique_text": 1200,
164
+ "unique_labels": 2,
165
+ "labels": {
166
+ "0": {
167
+ "count": 600
168
+ },
169
+ "1": {
170
+ "count": 600
171
+ }
172
+ }
173
+ },
174
+ "train": {
175
+ "num_samples": 3600,
176
+ "number_of_characters": 6385292,
177
+ "number_texts_intersect_with_train": null,
178
+ "min_text_length": 27,
179
+ "average_text_length": 1773.6922222222222,
180
+ "max_text_length": 16395,
181
+ "unique_text": 3600,
182
+ "unique_labels": 2,
183
+ "labels": {
184
+ "1": {
185
+ "count": 1800
186
+ },
187
+ "0": {
188
+ "count": 1800
189
+ }
190
+ }
191
+ }
192
+ }
193
+ ```
194
+
195
+ </details>
196
+
197
+ ---
198
+ *This dataset card was automatically generated using [MTEB](https://github.com/embeddings-benchmark/mteb)*