Datasets:

Multilinguality:
translation
Size Categories:
10K<n<100K
Language Creators:
found
Annotations Creators:
no-annotation
Source Datasets:
original
Tags:
License:
system HF staff commited on
Commit
e6c1d50
0 Parent(s):

Update files from the datasets library (from 1.2.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.2.0

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - en
8
+ - hr
9
+ licenses:
10
+ - cc-by-sa-3-0
11
+ multilinguality:
12
+ - translation
13
+ size_categories:
14
+ - 10K<n<100K
15
+ source_datasets:
16
+ - original
17
+ task_categories:
18
+ - conditional-text-generation
19
+ task_ids:
20
+ - machine-translation
21
+ ---
22
+
23
+ # Dataset Card for hrenwac_para
24
+
25
+ ## Table of Contents
26
+ - [Dataset Description](#dataset-description)
27
+ - [Dataset Summary](#dataset-summary)
28
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
29
+ - [Languages](#languages)
30
+ - [Dataset Structure](#dataset-structure)
31
+ - [Data Instances](#data-instances)
32
+ - [Data Fields](#data-instances)
33
+ - [Data Splits](#data-instances)
34
+ - [Dataset Creation](#dataset-creation)
35
+ - [Curation Rationale](#curation-rationale)
36
+ - [Source Data](#source-data)
37
+ - [Annotations](#annotations)
38
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
39
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
40
+ - [Social Impact of Dataset](#social-impact-of-dataset)
41
+ - [Discussion of Biases](#discussion-of-biases)
42
+ - [Other Known Limitations](#other-known-limitations)
43
+ - [Additional Information](#additional-information)
44
+ - [Dataset Curators](#dataset-curators)
45
+ - [Licensing Information](#licensing-information)
46
+ - [Citation Information](#citation-information)
47
+
48
+ ## Dataset Description
49
+
50
+ - **Homepage:** http://nlp.ffzg.hr/resources/corpora/hrenwac/
51
+ - **Repository:** http://nlp.ffzg.hr/data/corpora/hrenwac/hrenwac.en-hr.txt.gz
52
+ - **Paper:** http://workshop2013.iwslt.org/downloads/IWSLT-2013-Cettolo.pdf
53
+ - **Leaderboard:**
54
+ - **Point of Contact:** [Nikola Ljubešič](mailto:nikola.ljubesic@ffzg.hr)
55
+
56
+ ### Dataset Summary
57
+
58
+ The hrenWaC corpus version 2.0 consists of parallel Croatian-English texts crawled from the .hr top-level domain for Croatia. The corpus was built with Spidextor (https://github.com/abumatran/spidextor), a tool that glues together the output of SpiderLing used for crawling and Bitextor used for bitext extraction. The accuracy of the extracted bitext on the segment level is around 80% and on the word level around 84%.
59
+
60
+ ### Supported Tasks and Leaderboards
61
+
62
+ [More Information Needed]
63
+
64
+ ### Languages
65
+
66
+ Dataset is bilingual with Croatian and English languages.
67
+
68
+ ## Dataset Structure
69
+
70
+ ### Data Instances
71
+
72
+ [More Information Needed]
73
+
74
+ ### Data Fields
75
+
76
+ [More Information Needed]
77
+
78
+ ### Data Splits
79
+
80
+ [More Information Needed]
81
+
82
+ ## Dataset Creation
83
+
84
+ ### Curation Rationale
85
+
86
+ [More Information Needed]
87
+
88
+ ### Source Data
89
+
90
+ #### Initial Data Collection and Normalization
91
+
92
+ [More Information Needed]
93
+
94
+ #### Who are the source language producers?
95
+
96
+ [More Information Needed]
97
+
98
+ ### Annotations
99
+
100
+ #### Annotation process
101
+
102
+ [More Information Needed]
103
+
104
+ #### Who are the annotators?
105
+
106
+ [More Information Needed]
107
+
108
+ ### Personal and Sensitive Information
109
+
110
+ [More Information Needed]
111
+
112
+ ## Considerations for Using the Data
113
+
114
+ ### Social Impact of Dataset
115
+
116
+ [More Information Needed]
117
+
118
+ ### Discussion of Biases
119
+
120
+ [More Information Needed]
121
+
122
+ ### Other Known Limitations
123
+
124
+ [More Information Needed]
125
+
126
+ ## Additional Information
127
+
128
+ ### Dataset Curators
129
+
130
+ [More Information Needed]
131
+
132
+ ### Licensing Information
133
+
134
+ Dataset is under the [CC-BY-SA 3.0](http://creativecommons.org/licenses/by-sa/3.0/) license.
135
+
136
+ ### Citation Information
137
+
138
+ ```
139
+ @misc{11356/1058,
140
+ title = {Croatian-English parallel corpus {hrenWaC} 2.0},
141
+ author = {Ljube{\v s}i{\'c}, Nikola and Espl{\`a}-Gomis, Miquel and Ortiz Rojas, Sergio and Klubi{\v c}ka, Filip and Toral, Antonio},
142
+ url = {http://hdl.handle.net/11356/1058},
143
+ note = {Slovenian language resource repository {CLARIN}.{SI}},
144
+ copyright = {{CLARIN}.{SI} User Licence for Internet Corpora},
145
+ year = {2016} }
146
+ ```
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"hrenWaC": {"description": "The hrenWaC corpus version 2.0 consists of parallel Croatian-English texts crawled from the .hr top-level domain for Croatia. The corpus was built with Spidextor (https://github.com/abumatran/spidextor), a tool that glues together the output of SpiderLing used for crawling and Bitextor used for bitext extraction. The accuracy of the extracted bitext on the segment level is around 80% and on the word level around 84%.\n", "citation": "\n @misc{11356/1058,\n title = {Croatian-English parallel corpus {hrenWaC} 2.0},\n author = {Ljube{\u000b s}i{'c}, Nikola and Espl{'a}-Gomis, Miquel and Ortiz Rojas, Sergio and Klubi{\u000b c}ka, Filip and Toral, Antonio},\n url = {http://hdl.handle.net/11356/1058},\n note = {Slovenian language resource repository {CLARIN}.{SI}},\n copyright = {{CLARIN}.{SI} User Licence for Internet Corpora},\n year = {2016} }\n", "homepage": "http://nlp.ffzg.hr/resources/corpora/hrenwac/", "license": "CC BY-SA 3.0", "features": {"translation": {"languages": ["en", "hr"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": {"input": "en", "output": "hr"}, "builder_name": "hrenwac_para", "config_name": "hrenWaC", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 29602110, "num_examples": 99001, "dataset_name": "hrenwac_para"}}, "download_checksums": {"http://nlp.ffzg.hr/data/corpora/hrenwac/hrenwac.en-hr.txt.gz": {"num_bytes": 11640281, "checksum": "c5d31cbc87a1651e522e700793936ef68f9555b4f5a10e19d6f167f410dd738e"}}, "download_size": 11640281, "post_processing_size": null, "dataset_size": 29602110, "size_in_bytes": 41242391}}
dummy/hrenWaC/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a73071609fc03e5bca1dbea9fa916ba441800dad52c476f42c3b335a4ba57a9d
3
+ size 600
hrenwac_para.py ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """Croatian-English parallel corpus hrenWaC"""
16
+
17
+ import datasets
18
+
19
+
20
+ _CITATION = """
21
+ @misc{11356/1058,
22
+ title = {Croatian-English parallel corpus {hrenWaC} 2.0},
23
+ author = {Ljube{\v s}i{\'c}, Nikola and Espl{\'a}-Gomis, Miquel and Ortiz Rojas, Sergio and Klubi{\v c}ka, Filip and Toral, Antonio},
24
+ url = {http://hdl.handle.net/11356/1058},
25
+ note = {Slovenian language resource repository {CLARIN}.{SI}},
26
+ copyright = {{CLARIN}.{SI} User Licence for Internet Corpora},
27
+ year = {2016} }
28
+ """
29
+
30
+ _DESCRIPTION = """
31
+ The hrenWaC corpus version 2.0 consists of parallel Croatian-English texts crawled from the .hr top-level domain for Croatia.
32
+ The corpus was built with Spidextor (https://github.com/abumatran/spidextor), a tool that glues together the output of SpiderLing used for crawling and Bitextor used for bitext extraction. The accuracy of the extracted bitext on the segment level is around 80% and on the word level around 84%.
33
+ """
34
+
35
+ _LICENSE = "CC BY-SA 3.0"
36
+
37
+ _HOMEPAGE = "http://nlp.ffzg.hr/resources/corpora/hrenwac/"
38
+ _URLS = "http://nlp.ffzg.hr/data/corpora/hrenwac/hrenwac.en-hr.txt.gz"
39
+
40
+
41
+ class HrenwacPara(datasets.GeneratorBasedBuilder):
42
+ """Croatian-English parallel corpus hrenWaC"""
43
+
44
+ VERSION = datasets.Version("1.0.0")
45
+ BUILDER_CONFIGS = [
46
+ datasets.BuilderConfig(
47
+ name="hrenWaC",
48
+ version=VERSION,
49
+ description="The hrenWaC dataset.",
50
+ ),
51
+ ]
52
+
53
+ def _info(self):
54
+ return datasets.DatasetInfo(
55
+ description=_DESCRIPTION,
56
+ features=datasets.Features({"translation": datasets.features.Translation(languages=("en", "hr"))}),
57
+ supervised_keys=("en", "hr"),
58
+ homepage=_HOMEPAGE,
59
+ license=_LICENSE,
60
+ citation=_CITATION,
61
+ )
62
+
63
+ def _split_generators(self, dl_manager):
64
+ downloaded_file = dl_manager.download_and_extract({"train": _URLS})
65
+ return [
66
+ datasets.SplitGenerator(
67
+ name=datasets.Split.TRAIN,
68
+ gen_kwargs={
69
+ "filepath": downloaded_file["train"],
70
+ },
71
+ ),
72
+ ]
73
+
74
+ def _generate_examples(self, filepath):
75
+ with open(filepath, encoding="utf8") as f:
76
+ en = ""
77
+ hr = ""
78
+ i = -1
79
+ for id_, row in enumerate(f):
80
+ if id_ % 3 == 0:
81
+ en = row.strip()
82
+ if id_ % 3 == 1:
83
+ hr = row.strip()
84
+ if id_ % 3 == 2:
85
+ i = i + 1
86
+ yield i, {
87
+ "translation": {
88
+ "en": en,
89
+ "hr": hr,
90
+ }
91
+ }