Datasets:

License:
File size: 1,050 Bytes
627c792
 
 
7b410ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: cc-by-sa-4.0
---
# XLM-R-BERTić dataset

## Composition and usage

This dataset consists of the following splits:
* macocu_hbs
* hr_news
* bswac
* cc100_hr
* cc100_sr
* classla_sr
* classla_hr
* classla_bs
* cnrwac
* hrwac
* mC4
* riznica
* srwac

The entire dataset can be downloaded and used as follows:
```python
import datasets
dict_of_datasets = datasets.load_dataset("classla/xlm-r-bertic-data")
full_dataset = datasets.concatenate_datasets([d for d in dict_of_datasets.values()])
```

A single split can be taken as well, but note that this means all the splits will be downloaded and generated, which can take a long time:
```python
import datasets
riznica_ = datasets.load_dataset("classla/xlm-r-bertic-data", split="riznica")
```

To circumvent this one option is using streaming:

```python
import datasets
riznica = datasets.load_dataset("classla/xlm-r-bertic-data", split="riznica", streaming=True)
for i in riznica.take(2):
    print(i)
# Output:
# {'text': 'PRAGMATIČARI DOGMATI SANJARI'}
# {'text': 'Ivica Župan'}
```