Datasets:

Multilinguality:
multilingual
Language Creators:
found
Annotations Creators:
found
Source Datasets:
original
Tags:
License:
albertvillanova HF staff commited on
Commit
d72c5b7
1 Parent(s): e9f59cf

Fix loading example in opus dataset cards (#4813)

Browse files

* Fix loading example in opus dataset cards

* Fix dataset cards

Commit from https://github.com/huggingface/datasets/commit/18287ed524ac79f538abf77183f906e91d0de3de

Files changed (1) hide show
  1. README.md +52 -10
README.md CHANGED
@@ -57,7 +57,7 @@ configs:
57
  - mt-sh
58
  ---
59
 
60
- # Dataset Card Creation Guide
61
 
62
  ## Table of Contents
63
  - [Dataset Description](#dataset-description)
@@ -93,12 +93,18 @@ configs:
93
 
94
  ### Dataset Summary
95
 
 
96
 
97
- To load a language pair which isn't part of the config, all you need to do is specify the language code as pairs.
98
- You can find the valid pairs in Homepage section of Dataset Description: http://opus.nlpl.eu/DGT.php
99
- E.g.
 
100
 
101
- `dataset = load_dataset("dgt", lang1="it", lang2="pl")`
 
 
 
 
102
 
103
 
104
  ### Supported Tasks and Leaderboards
@@ -107,21 +113,55 @@ E.g.
107
 
108
  ### Languages
109
 
110
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
 
112
  ## Dataset Structure
113
 
114
  ### Data Instances
115
 
116
- [More Information Needed]
 
 
 
 
 
 
 
 
117
 
118
  ### Data Fields
119
 
120
- [More Information Needed]
 
121
 
122
  ### Data Splits
123
 
124
- [More Information Needed]
125
 
126
  ## Dataset Creation
127
 
@@ -183,6 +223,7 @@ E.g.
183
 
184
  ### Citation Information
185
 
 
186
  @InProceedings{TIEDEMANN12.463,
187
  author = {J{\"o}rg Tiedemann},
188
  title = {Parallel Data, Tools and Interfaces in OPUS},
@@ -195,7 +236,8 @@ E.g.
195
  publisher = {European Language Resources Association (ELRA)},
196
  isbn = {978-2-9517408-7-7},
197
  language = {english}
198
- }
 
199
 
200
  ### Contributions
201
 
 
57
  - mt-sh
58
  ---
59
 
60
+ # Dataset Card for OpusDgt
61
 
62
  ## Table of Contents
63
  - [Dataset Description](#dataset-description)
 
93
 
94
  ### Dataset Summary
95
 
96
+ A collection of translation memories provided by the Joint Research Centre (JRC) Directorate-General for Translation (DGT): https://ec.europa.eu/jrc/en/language-technologies/dgt-translation-memory
97
 
98
+ Tha dataset contains 25 languages and 299 bitexts.
99
+
100
+ To load a language pair which isn't part of the config, all you need to do is specify the language code as pairs,
101
+ e.g.
102
 
103
+ ```python
104
+ dataset = load_dataset("opus_dgt", lang1="it", lang2="pl")
105
+ ```
106
+
107
+ You can find the valid pairs in Homepage section of Dataset Description: http://opus.nlpl.eu/DGT.php
108
 
109
 
110
  ### Supported Tasks and Leaderboards
 
113
 
114
  ### Languages
115
 
116
+ The languages in the dataset are:
117
+ - bg
118
+ - cs
119
+ - da
120
+ - de
121
+ - el
122
+ - en
123
+ - es
124
+ - et
125
+ - fi
126
+ - fr
127
+ - ga
128
+ - hr
129
+ - hu
130
+ - it
131
+ - lt
132
+ - lv
133
+ - mt
134
+ - nl
135
+ - pl
136
+ - pt
137
+ - ro
138
+ - sh
139
+ - sk
140
+ - sl
141
+ - sv
142
 
143
  ## Dataset Structure
144
 
145
  ### Data Instances
146
 
147
+ ```
148
+ {
149
+ 'id': '0',
150
+ 'translation': {
151
+ "bg": "Протокол за поправка на Конвенцията относно компетентността, признаването и изпълнението на съдебни решения по граждански и търговски дела, подписана в Лугано на 30 октомври 2007 г.",
152
+ "ga": "Miontuairisc cheartaitheach maidir le Coinbhinsiún ar dhlínse agus ar aithint agus ar fhorghníomhú breithiúnas in ábhair shibhialta agus tráchtála, a siníodh in Lugano an 30 Deireadh Fómhair 2007"
153
+ }
154
+ }
155
+ ```
156
 
157
  ### Data Fields
158
 
159
+ - `id` (`str`): Unique identifier of the parallel sentence for the pair of languages.
160
+ - `translation` (`dict`): Parallel sentences for the pair of languages.
161
 
162
  ### Data Splits
163
 
164
+ The dataset contains a single `train` split.
165
 
166
  ## Dataset Creation
167
 
 
223
 
224
  ### Citation Information
225
 
226
+ ```bibtex
227
  @InProceedings{TIEDEMANN12.463,
228
  author = {J{\"o}rg Tiedemann},
229
  title = {Parallel Data, Tools and Interfaces in OPUS},
 
236
  publisher = {European Language Resources Association (ELRA)},
237
  isbn = {978-2-9517408-7-7},
238
  language = {english}
239
+ }
240
+ ```
241
 
242
  ### Contributions
243