Datasets:
Size:
10B<n<100B
License:
Add usage examples
Browse files
README.md
CHANGED
@@ -1,4 +1,46 @@
|
|
1 |
---
|
2 |
license: cc-by-sa-4.0
|
3 |
---
|
4 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: cc-by-sa-4.0
|
3 |
---
|
4 |
+
# XLM-R-BERTić dataset
|
5 |
+
|
6 |
+
## Composition and usage
|
7 |
+
|
8 |
+
This dataset consists of the following splits:
|
9 |
+
* macocu_hbs
|
10 |
+
* hr_news
|
11 |
+
* bswac
|
12 |
+
* cc100_hr
|
13 |
+
* cc100_sr
|
14 |
+
* classla_sr
|
15 |
+
* classla_hr
|
16 |
+
* classla_bs
|
17 |
+
* cnrwac
|
18 |
+
* hrwac
|
19 |
+
* mC4
|
20 |
+
* riznica
|
21 |
+
* srwac
|
22 |
+
|
23 |
+
The entire dataset can be downloaded and used as follows:
|
24 |
+
```python
|
25 |
+
import datasets
|
26 |
+
dict_of_datasets = datasets.load_dataset("classla/xlm-r-bertic-data")
|
27 |
+
full_dataset = datasets.concatenate_datasets([d for d in dict_of_datasets.values()])
|
28 |
+
```
|
29 |
+
|
30 |
+
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:
|
31 |
+
```python
|
32 |
+
import datasets
|
33 |
+
riznica_ = datasets.load_dataset("classla/xlm-r-bertic-data", split="riznica")
|
34 |
+
```
|
35 |
+
|
36 |
+
To circumvent this one option is using streaming:
|
37 |
+
|
38 |
+
```python
|
39 |
+
import datasets
|
40 |
+
riznica = datasets.load_dataset("classla/xlm-r-bertic-data", split="riznica", streaming=True)
|
41 |
+
for i in riznica.take(2):
|
42 |
+
print(i)
|
43 |
+
# Output:
|
44 |
+
# {'text': 'PRAGMATIČARI DOGMATI SANJARI'}
|
45 |
+
# {'text': 'Ivica Župan'}
|
46 |
+
```
|