File size: 11,546 Bytes
fee8af3
 
dc7ab9f
 
 
f50d99d
 
37999a7
6d08b48
372efc6
dc7ab9f
 
 
 
 
 
 
f50d99d
dc7ab9f
 
f50d99d
dc7ab9f
 
f50d99d
37999a7
f50d99d
 
 
109c37c
 
 
 
f50d99d
 
109c37c
f50d99d
 
109c37c
37999a7
f50d99d
 
 
37999a7
f50d99d
 
37999a7
f50d99d
 
37999a7
 
 
 
 
 
 
 
 
 
 
 
6d08b48
 
 
 
 
 
 
 
 
 
 
dc7ab9f
 
fee8af3
dc7ab9f
10ad9c3
dc7ab9f
da0b596
dc7ab9f
f744c8f
 
 
 
 
dc7ab9f
da0b596
 
 
 
 
 
f7b0974
da0b596
 
 
 
 
 
f7b0974
da0b596
 
 
 
 
 
 
 
f7b0974
da0b596
 
 
 
 
 
f7b0974
da0b596
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
487cce7
 
 
 
da0b596
 
 
 
949465b
1b8c318
487cce7
1b8c318
da0b596
 
 
 
949465b
487cce7
 
da0b596
 
 
 
949465b
 
1b8c318
46074d4
1b8c318
949465b
 
 
 
 
1b8c318
487cce7
1b8c318
949465b
 
 
05eba32
 
1b8c318
05eba32
1b8c318
05eba32
 
 
da0b596
 
dc7ab9f
 
 
 
 
 
 
a2b9b6c
 
 
 
 
dc7ab9f
 
 
 
 
 
 
 
4634582
dc7ab9f
 
 
 
 
 
 
 
 
 
 
 
 
4634582
dc7ab9f
 
 
 
 
 
 
c2de48b
 
 
 
 
 
 
 
 
 
 
 
 
 
6dc7ae8
 
 
 
 
4634582
6dc7ae8
 
 
 
 
 
 
 
 
 
 
 
4634582
6dc7ae8
 
 
 
 
 
 
dc7ab9f
 
 
 
 
 
 
6dc7ae8
dc7ab9f
 
6dc7ae8
dc7ab9f
 
6dc7ae8
dc7ab9f
 
6dc7ae8
dc7ab9f
 
 
 
 
 
da0b596
 
 
dc7ab9f
da0b596
dc7ab9f
 
da0b596
 
4634582
dc7ab9f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4634582
 
 
dc7ab9f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
---
license: odc-by
language:
- sr
- ru
- zh
- hr
- en
- bs
pretty_name: Kolekcija Otvorenih Međujezičkih Paralelnih Skupova za Srpski
size_categories:
- 100M<n<1B
configs:
- config_name: ru
  data_files:
  - split: train
    path:
    - '*_ru_train.jsonl'
  - split: dev
    path:
    - '*_ru_dev.jsonl'
  - split: test
    path:
    - '*_ru_test.jsonl'
- config_name: zh
  data_files:
  - split: train
    path:
    - '*_zh_train.jsonl'
    - '*_zh_HK_train.jsonl'
    - '*_zh_CN_train.jsonl'
    - '*_zh_TW_train.jsonl'
  - split: dev
    path:
    - '*_zh_dev.jsonl'
  - split: test
    path:
    - '*_zh_test.jsonl'
- config_name: en
  data_files:
  - split: train
    path:
    - '*_en_train.jsonl'
  - split: dev
    path:
    - '*_en_dev.jsonl'
  - split: test
    path:
    - '*_en_test.jsonl'
- config_name: hr
  data_files:
  - split: train
    path:
    - '*_hr_train.jsonl'
  - split: dev
    path:
    - '*_hr_dev.jsonl'
  - split: test
    path:
    - '*_hr_test.jsonl'
- config_name: bs
  data_files:
  - split: train
    path:
    - '*_bs_train.jsonl'
  - split: dev
    path:
    - '*_bs_dev.jsonl'
  - split: test
    path:
    - '*_bs_test.jsonl'
task_categories:
- translation
---

<img src="cover.svg" class="cover">

<table style="width:100%;height:100%;font-size: 14pt;">
  <tr style="width:100%;height:30px">
    <td width="50%">
      <h1><span class="highlight-container"><span class="highlight">КОМПаС</span></span> - Колекција Отворених Међујезичких Паралелних Скупова за Српски</h1>
    </td>
    <td width="50%">
      <h1><span class="highlight-container"><span class="highlight">COMPaSS</span></span> - Collection of Open Multilingual Parallel Sets for Serbian</h1>
    </td>
  </tr>
  
  <!-- Descriptions -->
  <tr style="width:100%;vertical-align:top">
    <!-- Serbian -->
    <td width="50%">
      <!--h2>Српски</h2-->
      <p>Отворена колекција паралелних корпуса за српски језик преузета из колекције <a href="https://opus.nlpl.eu/">ОПУС</a>.</p>
      <p>Сви парови реченица су дедуплицирани и додатно текстуално кориговани.</p>
      <p>Развојни и тест скупови су упарени са Helsinki-NLP/OpenSubtitles2024 и погодни за обучавање и евалуацију модела за машинско превођење.</p>
    </td>
    <!-- Russian -->
    <td width="50%">
      <!--h2>Русский</h2-->
      <p>Открытая коллекция параллельных корпусов для сербского языка, взятая из коллекции <a href="https://opus.nlpl.eu/">ОПУС</a>.</p>
      <p>Все пары предложений прошли дедупликацию и дополнительную текстовую коррекцию.</p>
      <p>Наборы для разработки и тестирования сопряжены с Helsinki-NLP/OpenSubtitles2024 и подходят для обучения и оценки моделей машинного перевода.</p>
    </td>
    </tr>
    <tr style="width:100%;vertical-align:top">
    <!-- Chinese -->
    <td width="50%">
      <!--h2>中文</h2-->
      <p>来自 <a href="https://opus.nlpl.eu/">OPUS</a> 集合的塞尔维亚语开放平行语料库。</p>
      <p>所有句对均已去重并经过文本修复与更正。</p>
      <p>开发集和测试集与 Helsinki-NLP/OpenSubtitles2024 对齐,适用于机器翻译模型的训练和评估。</p>
    </td>
    <!-- English / Croatian -->
    <td width="50%">
      <!--h2>English</h2-->
      <p>Open collection of parallel corpora for Serbian extracted from <a href="https://opus.nlpl.eu/">OPUS</a>.</p>
      <p>All sentence pairs are deduplicated and refined with additional text fixes.</p>
      <p>Dev and test sets are aligned with Helsinki-NLP/OpenSubtitles2024, suitable for training and evaluating machine translation models.</p>
    </td>
  </tr>

  <!-- Corpus Size Table -->
  <tr style="width:100%;vertical-align:top">
    <td colspan="4" align="center">
      <br>
      <h3>Статистика корпуса / Corpus Statistics</h3>
      <table border="1" cellpadding="8" cellspacing="0" style="border-collapse:collapse; width:95%; text-align:right;">
        <thead>
          <tr style="font-weight:800; text-align:center;">
            <th style="text-align:left;">Језички пар / Language Pair</th>
            <th>Total Pairs (Raw)</th>
            <th>Duplicates Dropped</th>
            <th>Train Pairs</th>
            <th>Dev Pairs</th>
            <th>Test Pairs</th> 
          </tr>
        </thead>
        <tbody>
          <tr>
            <td style="text-align:left;">🇷🇸 <strong>Српско – Руски (sr–ru)</strong> 🇷🇺</td>
            <td>42,400,713</td>
            <td>5,505,001</td>
            <td>36,618,397</td>
            <td>273,613</td>
            <td>3,702</td>
          </tr>
          <tr>
            <td style="text-align:left;">🇷🇸 <strong>Српско – Кинески (sr–zh)</strong> 🇨🇳</td>
            <td>14,056,019</td>
            <td>1,347,365</td>
            <td>12,440,229</td>
            <td>261,241</td>
            <td>7,184</td>
          </tr>
          <tr>
            <td style="text-align:left;">🇷🇸 <strong>Српско – Енглески (sr–en)</strong> 🇬🇧</td>
            <td>105,112,658</td>
            <td>20,494,934</td>
            <td>84,124,056</td>
            <td>490,696</td>
            <td>2,972</td>
          </tr>
          <tr>
            <td style="text-align:left;">🇷🇸 <strong>Српско – Хрватски (sr–hr)</strong> 🇭🇷</td>
            <td>43,429,602</td>
            <td>10,111,780</td>
            <td>33,006,774</td>
            <td>306,421</td>
            <td>4,627</td>
          </tr>
          <tr>
            <td style="text-align:left;">🇷🇸 <strong>Српско – Босански (sr–bs)</strong> 🇧🇦</td>
            <td>14,542,762</td>
            <td>3,489,701</td>
            <td>10,992,591</td>
            <td>54,238</td>
            <td>6,202</td>
          </tr>
        </tbody>
      </table>
    </td>
  </tr>
</table>


```python
from datasets import load_dataset
serbian_russian = load_dataset("procesaur/KOMPaS", "ru")
serbian_chinese = load_dataset("procesaur/KOMPaS", "zh")
serbian_english = load_dataset("procesaur/KOMPaS", "en")
serbian_croatian = load_dataset("procesaur/KOMPaS", "hr")

```


<div class="inline-flex flex-col avatar-cont">
  <div class="avatar-title">Editor</div>
    <a href="https://huggingface.co/procesaur">  
      <div class="flex">
          <div class="avatar-cover"
  			style="background-image: url(https://cdn-uploads.huggingface.co/production/uploads/1673534533167-63bc254fb8c61b8aa496a39b.jpeg?w=200&h=200&f=face&)">
          </div>
      </div>
      <div class="avatar-name">Mihailo Škorić</div>
      <div class="avatar-handle">@procesaur</div>
    </a>
  </div>
</div>

<div class="inline-flex flex-col avatar-cont">
  <div class="avatar-title">Data</div>
    <a href="https://opus.nlpl.eu/">  
      <div class="flex">
          <div class="avatar-cover"
  			style="background-image: url(https://raw.githubusercontent.com/Helsinki-NLP/OPUS/main/img/opus_small.jpg)">
          </div>
      </div>
      <div class="avatar-name">The Open Parallel Corpus</div>
      <div class="avatar-handle">@OPUS</div>
    </a>
  </div>
</div>
<div class="inline-flex flex-col avatar-cont">
  <div class="avatar-title">Data</div>
    <a href="https://macocu.eu/">  
      <div class="flex">
          <div class="avatar-cover"
  			style="background-image: url(https://cdn-avatars.huggingface.co/v1/production/uploads/1665565700323-615ea405065f806bfd471f0c.png)">
          </div>
      </div>
      <div class="avatar-name">MaCoCu</div>
      <div class="avatar-handle">@MaCoCu</div>
    </a>
  </div>
</div>

<div class="inline-flex flex-col avatar-cont">
  <div class="avatar-title">Funding</div>
    <a href="https://www.inovacionifond.rs">  
      <div class="flex">
          <div class="avatar-cover"
  			style="background-image: url(https://www.inovacionifond.rs/public/images/fid-logo-rs-cir.svg)">
          </div>
      </div>
      <div class="avatar-name">Fond za inovacionu delatnost</div>
      <div class="avatar-handle">@SrbInnov</div>
    </a>
  </div>
</div>
<div class="inline-flex flex-col avatar-cont">
  <div class="avatar-title">Funding</div>
    <a href="https://it-creator.rs">  
      <div class="flex">
          <div class="avatar-cover"
  			style="background-image: url(https://it-creator.rs/assets/img/logo.png)">
          </div>
      </div>
      <div class="avatar-name">IT Creator</div>
      <div class="avatar-handle">it-creator.rs</div>
    </a>
  </div>
</div>

  
Citation:
```bibtex
uskoro
```
	
<table style="width:100%;height:100%">
  <tr style="width:100%;height:100%">
    <td width=50%>
       <p><p>Истраживање jе спроведено уз подршку Фода за иновациону делатност Републике Србије у оквиру програма GOVTECH, решење #55417, ПравДок</p></p>
    </td>
    <td>
      <p>The research was conducted with the support of The Republic of Serbia Innovation Fund within the GOVTECH program, solution #55417, PravDok</p>
    </td>
  </tr>
</table>

<div id="zastava">
  <div class="grb">
    <img src="https://www.ai.gov.rs/img/logo_60x120-2.png" style="position:relative; left:30px; z-index:10; height:85px">
  </div>
  <table width=100% style="border:0px">
    <tr style="background-color:#C6363C;width:100%;border:0px;height:30px"><td style="width:100vw"></td></tr>
    <tr style="background-color:#0C4076;width:100%;border:0px;height:30px"><td></td></tr>
    <tr style="background-color:#ffffff;width:100%;border:0px;height:30px"><td></td></tr>
  </table>
  
</div>




<style>
  .ffeat: {
  color:red
  }
  
  .cover {
    width: 100%;
    margin-bottom: 5pt
  }
  
.highlight-container, .highlight {
  position: relative;
  text-decoration:none
}

.highlight-container {
  display: inline-block;
}

.avatar-cont {
  line-height: 1.5;
  padding-right:50px;
}

.avatar-title{
  text-align: center;
  margin-top: 3px;
  font-size: 16px;
  font-weight: 800;
}

.avatar-name{
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}

.avatar-handle{
  text-align: center;
  font-size: 14px;
}

.avatar-cover{
  display:DISPLAY_1;
  margin-left: auto;
  margin-right: auto;
  width: 92px;
  height:92px;
  border-radius: 50%;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.highlight{
  color:white;
  text-transform:uppercase;
  font-size: 16pt;
}

  .highlight-container{
    padding:5px 10px
  }

.highlight-container:before {
  content: " ";
  display: block;
  height: 100%;
  width: 100%;
  margin-left: 0px;
  margin-right: 0px;
  position: absolute;
  background: #e80909;
  transform: rotate(2deg);
  top: -1px;
  left: -1px;
  border-radius: 20% 25% 20% 24%;
  padding: 10px 18px 18px 10px;
}

div.grb, #zastava>table {
  position:absolute;
  top:0px;
  left: 0px;
  margin:0px
}

  div.grb>img, #zastava>table{
    margin:0px
  }
  
#zastava {
  position: relative;
  margin-bottom:120px
}

  p {
    font-size:14pt
  }
</style>