Datasets:

Modalities:
Text
Formats:
json
Languages:
Romansh
ArXiv:
Libraries:
Datasets
pandas
License:
jvamvas commited on
Commit
b518d37
·
verified ·
1 Parent(s): 9d3daa0

Add citation

Browse files
Files changed (1) hide show
  1. README.md +127 -114
README.md CHANGED
@@ -1,115 +1,128 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
- language:
4
- - rm
5
- configs:
6
- - config_name: rm-surmiran
7
- data_files:
8
- - split: train
9
- path: data/rm-surmiran/train.jsonl
10
- - split: validation
11
- path: data/rm-surmiran/validation.jsonl
12
- - split: test
13
- path: data/rm-surmiran/test.jsonl
14
- - config_name: rm-sursilv
15
- data_files:
16
- - split: train
17
- path: data/rm-sursilv/train.jsonl
18
- - split: validation
19
- path: data/rm-sursilv/validation.jsonl
20
- - split: test
21
- path: data/rm-sursilv/test.jsonl
22
- - split: no_surmiran
23
- path: data/rm-sursilv/no_surmiran.jsonl
24
- - config_name: rm-puter
25
- data_files:
26
- - split: train
27
- path: data/rm-puter/train.jsonl
28
- - split: validation
29
- path: data/rm-puter/validation.jsonl
30
- - split: test
31
- path: data/rm-puter/test.jsonl
32
- - split: no_surmiran
33
- path: data/rm-puter/no_surmiran.jsonl
34
- - config_name: rm-sutsilv
35
- data_files:
36
- - split: train
37
- path: data/rm-sutsilv/train.jsonl
38
- - split: validation
39
- path: data/rm-sutsilv/validation.jsonl
40
- - split: test
41
- path: data/rm-sutsilv/test.jsonl
42
- - split: no_surmiran
43
- path: data/rm-sutsilv/no_surmiran.jsonl
44
- - config_name: rm-vallader
45
- data_files:
46
- - split: train
47
- path: data/rm-vallader/train.jsonl
48
- - split: validation
49
- path: data/rm-vallader/validation.jsonl
50
- - split: test
51
- path: data/rm-vallader/test.jsonl
52
- - split: no_surmiran
53
- path: data/rm-vallader/no_surmiran.jsonl
54
- ---
55
-
56
- ## General Information
57
-
58
- Release of the Mediomatix corpus, prepared by UZH and PHGR, to be used for research purposes only.
59
-
60
- In mediomatix-raw, we release the full _Mediomatix_ schoolbooks' text for each idiom. The data points are unaligned. See [here](https://huggingface.co/datasets/ZurichNLP/mediomatix) for the mulit-parallel, aligned _Mediomatix_ corpus.
61
-
62
- We use the following Romansh idiom codes as subsets in the dataset:
63
- - Sursilvan: rm-sursilv
64
- - Sutsilvan: rm-sutsilv
65
- - Surmiran: rm-surmiran
66
- - Puter: rm-puter
67
- - Vallader: rm-vallader
68
-
69
- The splits in each subset are:
70
- - train: Text from year 2 and 3 schoolbooks
71
- - validation: Text from year 4 schoolbooks
72
- - test: Text from year 5 schoolbooks
73
- - no_surmiran: Text from years 6-9; available for all idioms except rm-surmiran
74
-
75
- Each data point contains the following columns:
76
- - CmsElementID: An id referring to which CMS element a text was extracted from.
77
- - segmentID: A unique id for each row; differentiates between segments split apart from the same CMS element.
78
- - text: The extracted plain text from within an HTML segment
79
- - html: The extracted text, including any HTML markup
80
- - chapter: The name of the chapter from which a text was extracted
81
- - book: A code referring to the grade, volume, and type of school book
82
-
83
-
84
- Book names are encoded in the "book" column as follows:
85
- - The first digit refers to the school year of the book
86
- - The next refers to the book volums for that school year
87
- - The two letter code indicates whether the segment comes from the student workbook ("wb") or teacher's commentary ("tc")
88
- - Example: Book "5.1_tc" refers to teacher's commentary for Volume 1 of the year 5 schoolbook.
89
-
90
- ## How to Use
91
-
92
- The subset for a specific Romansh idiom must be specified when loading the datset:
93
-
94
- ```python
95
- from datasets import load_dataset
96
-
97
- sursilv = load_dataset("ZurichNLP/mediomatix-raw","rm-sursilv")
98
-
99
- # Load Train set:
100
-
101
- train_set = sursilv['train']
102
-
103
- # Load Validation set:
104
-
105
- val_set = sursilv['validation']
106
-
107
- # Load Test set:
108
-
109
- test_set = sursilv['test']
110
-
111
- # Load no-rm-surmiran if the subset is not rm-surmiran
112
- no_surm = sursilv['no_surmiran']
113
- ```
114
-
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  © 2025 Meds d'instrucziun dal Grischun
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ language:
4
+ - rm
5
+ configs:
6
+ - config_name: rm-surmiran
7
+ data_files:
8
+ - split: train
9
+ path: data/rm-surmiran/train.jsonl
10
+ - split: validation
11
+ path: data/rm-surmiran/validation.jsonl
12
+ - split: test
13
+ path: data/rm-surmiran/test.jsonl
14
+ - config_name: rm-sursilv
15
+ data_files:
16
+ - split: train
17
+ path: data/rm-sursilv/train.jsonl
18
+ - split: validation
19
+ path: data/rm-sursilv/validation.jsonl
20
+ - split: test
21
+ path: data/rm-sursilv/test.jsonl
22
+ - split: no_surmiran
23
+ path: data/rm-sursilv/no_surmiran.jsonl
24
+ - config_name: rm-puter
25
+ data_files:
26
+ - split: train
27
+ path: data/rm-puter/train.jsonl
28
+ - split: validation
29
+ path: data/rm-puter/validation.jsonl
30
+ - split: test
31
+ path: data/rm-puter/test.jsonl
32
+ - split: no_surmiran
33
+ path: data/rm-puter/no_surmiran.jsonl
34
+ - config_name: rm-sutsilv
35
+ data_files:
36
+ - split: train
37
+ path: data/rm-sutsilv/train.jsonl
38
+ - split: validation
39
+ path: data/rm-sutsilv/validation.jsonl
40
+ - split: test
41
+ path: data/rm-sutsilv/test.jsonl
42
+ - split: no_surmiran
43
+ path: data/rm-sutsilv/no_surmiran.jsonl
44
+ - config_name: rm-vallader
45
+ data_files:
46
+ - split: train
47
+ path: data/rm-vallader/train.jsonl
48
+ - split: validation
49
+ path: data/rm-vallader/validation.jsonl
50
+ - split: test
51
+ path: data/rm-vallader/test.jsonl
52
+ - split: no_surmiran
53
+ path: data/rm-vallader/no_surmiran.jsonl
54
+ ---
55
+
56
+ ## General Information
57
+
58
+ Release of the Mediomatix corpus, prepared by UZH and PHGR, to be used for research purposes only.
59
+
60
+ In mediomatix-raw, we release the full _Mediomatix_ schoolbooks' text for each idiom. The data points are unaligned. See [here](https://huggingface.co/datasets/ZurichNLP/mediomatix) for the mulit-parallel, aligned _Mediomatix_ corpus.
61
+
62
+ We use the following Romansh idiom codes as subsets in the dataset:
63
+ - Sursilvan: rm-sursilv
64
+ - Sutsilvan: rm-sutsilv
65
+ - Surmiran: rm-surmiran
66
+ - Puter: rm-puter
67
+ - Vallader: rm-vallader
68
+
69
+ The splits in each subset are:
70
+ - train: Text from year 2 and 3 schoolbooks
71
+ - validation: Text from year 4 schoolbooks
72
+ - test: Text from year 5 schoolbooks
73
+ - no_surmiran: Text from years 6-9; available for all idioms except rm-surmiran
74
+
75
+ Each data point contains the following columns:
76
+ - CmsElementID: An id referring to which CMS element a text was extracted from.
77
+ - segmentID: A unique id for each row; differentiates between segments split apart from the same CMS element.
78
+ - text: The extracted plain text from within an HTML segment
79
+ - html: The extracted text, including any HTML markup
80
+ - chapter: The name of the chapter from which a text was extracted
81
+ - book: A code referring to the grade, volume, and type of school book
82
+
83
+
84
+ Book names are encoded in the "book" column as follows:
85
+ - The first digit refers to the school year of the book
86
+ - The next refers to the book volums for that school year
87
+ - The two letter code indicates whether the segment comes from the student workbook ("wb") or teacher's commentary ("tc")
88
+ - Example: Book "5.1_tc" refers to teacher's commentary for Volume 1 of the year 5 schoolbook.
89
+
90
+ ## How to Use
91
+
92
+ The subset for a specific Romansh idiom must be specified when loading the datset:
93
+
94
+ ```python
95
+ from datasets import load_dataset
96
+
97
+ sursilv = load_dataset("ZurichNLP/mediomatix-raw","rm-sursilv")
98
+
99
+ # Load Train set:
100
+
101
+ train_set = sursilv['train']
102
+
103
+ # Load Validation set:
104
+
105
+ val_set = sursilv['validation']
106
+
107
+ # Load Test set:
108
+
109
+ test_set = sursilv['test']
110
+
111
+ # Load no-rm-surmiran if the subset is not rm-surmiran
112
+ no_surm = sursilv['no_surmiran']
113
+ ```
114
+
115
+ ## Citation
116
+ ```bibtex
117
+ @misc{hopton-et-al-2025-mediomatix,
118
+ title={The Mediomatix Corpus: Parallel Data for Romansh Idioms via Comparable Schoolbooks},
119
+ author={Zachary Hopton and Jannis Vamvas and Andrin Büchler and Anna Rutkiewicz and Rico Cathomas and Rico Sennrich},
120
+ year={2025},
121
+ eprint={2508.16371},
122
+ archivePrefix={arXiv},
123
+ primaryClass={cs.CL},
124
+ url={https://arxiv.org/abs/2508.16371},
125
+ }
126
+ ```
127
+
128
  © 2025 Meds d'instrucziun dal Grischun