system HF staff commited on
Commit
ad7f4a4
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

Files changed (5) hide show
  1. .gitattributes +27 -0
  2. README.md +162 -0
  3. cawac.py +90 -0
  4. dataset_infos.json +1 -0
  5. dummy/0.0.0/dummy_data.zip +3 -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,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - ca
8
+ licenses:
9
+ - cc-by-sa-3-0
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - n>1M
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - sequence-modeling
18
+ task_ids:
19
+ - language-modeling
20
+ ---
21
+
22
+ # Dataset Card for caWaC
23
+
24
+ ## Table of Contents
25
+ - [Dataset Description](#dataset-description)
26
+ - [Dataset Summary](#dataset-summary)
27
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
28
+ - [Languages](#languages)
29
+ - [Dataset Structure](#dataset-structure)
30
+ - [Data Instances](#data-instances)
31
+ - [Data Fields](#data-instances)
32
+ - [Data Splits](#data-instances)
33
+ - [Dataset Creation](#dataset-creation)
34
+ - [Curation Rationale](#curation-rationale)
35
+ - [Source Data](#source-data)
36
+ - [Annotations](#annotations)
37
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
38
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
39
+ - [Social Impact of Dataset](#social-impact-of-dataset)
40
+ - [Discussion of Biases](#discussion-of-biases)
41
+ - [Other Known Limitations](#other-known-limitations)
42
+ - [Additional Information](#additional-information)
43
+ - [Dataset Curators](#dataset-curators)
44
+ - [Licensing Information](#licensing-information)
45
+ - [Citation Information](#citation-information)
46
+
47
+ ## Dataset Description
48
+
49
+ - **Homepage:** http://nlp.ffzg.hr/resources/corpora/cawac/
50
+ - **Repository:** http://nlp.ffzg.hr/data/corpora/cawac.uniq.sortr.gz
51
+ - **Paper:** http://www.lrec-conf.org/proceedings/lrec2014/pdf/841_Paper.pdf
52
+ - **Leaderboard:**
53
+ - **Point of Contact:** [Nikola Ljubešič](mailto:[email protected])
54
+
55
+ ### Dataset Summary
56
+
57
+ caWaC is a 780-million-token web corpus of Catalan built from the .cat top-level-domain in late 2013.
58
+
59
+ ### Supported Tasks and Leaderboards
60
+
61
+ [More Information Needed]
62
+
63
+ ### Languages
64
+
65
+ Dataset is monolingual in Catalan language.
66
+
67
+ ## Dataset Structure
68
+
69
+ ### Data Instances
70
+
71
+ [More Information Needed]
72
+
73
+ ### Data Fields
74
+
75
+ [More Information Needed]
76
+
77
+ ### Data Splits
78
+
79
+ [More Information Needed]
80
+
81
+ ## Dataset Creation
82
+
83
+ ### Curation Rationale
84
+
85
+ [More Information Needed]
86
+
87
+ ### Source Data
88
+
89
+ #### Initial Data Collection and Normalization
90
+
91
+ [More Information Needed]
92
+
93
+ #### Who are the source language producers?
94
+
95
+ [More Information Needed]
96
+
97
+ ### Annotations
98
+
99
+ #### Annotation process
100
+
101
+ [More Information Needed]
102
+
103
+ #### Who are the annotators?
104
+
105
+ [More Information Needed]
106
+
107
+ ### Personal and Sensitive Information
108
+
109
+ [More Information Needed]
110
+
111
+ ## Considerations for Using the Data
112
+
113
+ ### Social Impact of Dataset
114
+
115
+ [More Information Needed]
116
+
117
+ ### Discussion of Biases
118
+
119
+ [More Information Needed]
120
+
121
+ ### Other Known Limitations
122
+
123
+ [More Information Needed]
124
+
125
+ ## Additional Information
126
+
127
+ ### Dataset Curators
128
+
129
+ [More Information Needed]
130
+
131
+ ### Licensing Information
132
+
133
+ Dataset is under the [CC-BY-SA 3.0](http://creativecommons.org/licenses/by-sa/3.0/) license.
134
+
135
+ ### Citation Information
136
+
137
+ ```
138
+ @inproceedings{DBLP:conf/lrec/LjubesicT14,
139
+ author = {Nikola Ljubesic and
140
+ Antonio Toral},
141
+ editor = {Nicoletta Calzolari and
142
+ Khalid Choukri and
143
+ Thierry Declerck and
144
+ Hrafn Loftsson and
145
+ Bente Maegaard and
146
+ Joseph Mariani and
147
+ Asunci{\'{o}}n Moreno and
148
+ Jan Odijk and
149
+ Stelios Piperidis},
150
+ title = {caWaC - {A} web corpus of Catalan and its application to language
151
+ modeling and machine translation},
152
+ booktitle = {Proceedings of the Ninth International Conference on Language Resources
153
+ and Evaluation, {LREC} 2014, Reykjavik, Iceland, May 26-31, 2014},
154
+ pages = {1728--1732},
155
+ publisher = {European Language Resources Association {(ELRA)}},
156
+ year = {2014},
157
+ url = {http://www.lrec-conf.org/proceedings/lrec2014/summaries/841.html},
158
+ timestamp = {Mon, 19 Aug 2019 15:23:35 +0200},
159
+ biburl = {https://dblp.org/rec/conf/lrec/LjubesicT14.bib},
160
+ bibsource = {dblp computer science bibliography, https://dblp.org}
161
+ }
162
+ ```
cawac.py ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """caWaC: Catalan web corpus dataset."""
16
+
17
+ import datasets
18
+
19
+
20
+ _CITATION = """\
21
+ @inproceedings{DBLP:conf/lrec/LjubesicT14,
22
+ author = {Nikola Ljubesic and
23
+ Antonio Toral},
24
+ editor = {Nicoletta Calzolari and
25
+ Khalid Choukri and
26
+ Thierry Declerck and
27
+ Hrafn Loftsson and
28
+ Bente Maegaard and
29
+ Joseph Mariani and
30
+ Asunci{\'{o}}n Moreno and
31
+ Jan Odijk and
32
+ Stelios Piperidis},
33
+ title = {caWaC - {A} web corpus of Catalan and its application to language
34
+ modeling and machine translation},
35
+ booktitle = {Proceedings of the Ninth International Conference on Language Resources
36
+ and Evaluation, {LREC} 2014, Reykjavik, Iceland, May 26-31, 2014},
37
+ pages = {1728--1732},
38
+ publisher = {European Language Resources Association {(ELRA)}},
39
+ year = {2014},
40
+ url = {http://www.lrec-conf.org/proceedings/lrec2014/summaries/841.html},
41
+ timestamp = {Mon, 19 Aug 2019 15:23:35 +0200},
42
+ biburl = {https://dblp.org/rec/conf/lrec/LjubesicT14.bib},
43
+ bibsource = {dblp computer science bibliography, https://dblp.org}
44
+ }
45
+ """
46
+
47
+ _DESCRIPTION = """\
48
+ caWaC is a 780-million-token web corpus of Catalan built from the .cat top-level-domain in late 2013.
49
+ """
50
+
51
+ _LICENSE = "CC BY-SA 3.0"
52
+
53
+ _URL = "http://nlp.ffzg.hr/resources/corpora/cawac/"
54
+ _URLS = "http://nlp.ffzg.hr/data/corpora/cawac.uniq.sortr.gz"
55
+
56
+
57
+ class Cawac(datasets.GeneratorBasedBuilder):
58
+ """caWaC: Catalan web corpus dataset."""
59
+
60
+ def _info(self):
61
+ return datasets.DatasetInfo(
62
+ description=_DESCRIPTION,
63
+ features=datasets.Features(
64
+ {
65
+ "sentence": datasets.Value("string"),
66
+ }
67
+ ),
68
+ supervised_keys=None,
69
+ homepage=_URL,
70
+ license=_LICENSE,
71
+ citation=_CITATION,
72
+ )
73
+
74
+ def _split_generators(self, dl_manager):
75
+ downloaded_file = dl_manager.download_and_extract(_URLS)
76
+ return [
77
+ datasets.SplitGenerator(
78
+ name=datasets.Split.TRAIN,
79
+ gen_kwargs={
80
+ "filepath": downloaded_file,
81
+ },
82
+ ),
83
+ ]
84
+
85
+ def _generate_examples(self, filepath):
86
+ with open(filepath, encoding="utf8") as f:
87
+ for id_, row in enumerate(f):
88
+ yield id_, {
89
+ "sentence": row,
90
+ }
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"default": {"description": "caWaC is a 780-million-token web corpus of Catalan built from the .cat top-level-domain in late 2013. \n", "citation": "@inproceedings{DBLP:conf/lrec/LjubesicT14,\n author = {Nikola Ljubesic and\n Antonio Toral},\n editor = {Nicoletta Calzolari and\n Khalid Choukri and\n Thierry Declerck and\n Hrafn Loftsson and\n Bente Maegaard and\n Joseph Mariani and\n Asunci{'{o}}n Moreno and\n Jan Odijk and\n Stelios Piperidis},\n title = {caWaC - {A} web corpus of Catalan and its application to language\n modeling and machine translation},\n booktitle = {Proceedings of the Ninth International Conference on Language Resources\n and Evaluation, {LREC} 2014, Reykjavik, Iceland, May 26-31, 2014},\n pages = {1728--1732},\n publisher = {European Language Resources Association {(ELRA)}},\n year = {2014},\n url = {http://www.lrec-conf.org/proceedings/lrec2014/summaries/841.html},\n timestamp = {Mon, 19 Aug 2019 15:23:35 +0200},\n biburl = {https://dblp.org/rec/conf/lrec/LjubesicT14.bib},\n bibsource = {dblp computer science bibliography, https://dblp.org}\n}\n", "homepage": "http://nlp.ffzg.hr/resources/corpora/cawac/", "license": "CC BY-SA 3.0", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "cawac", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3987238444, "num_examples": 24745986, "dataset_name": "cawac"}}, "download_checksums": {"http://nlp.ffzg.hr/data/corpora/cawac.uniq.sortr.gz": {"num_bytes": 1620361999, "checksum": "581af7712663214acd437c812b65cda875a42294bcc40c8e8cadc3d9eee3b442"}}, "download_size": 1620361999, "post_processing_size": null, "dataset_size": 3987238444, "size_in_bytes": 5607600443}}
dummy/0.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06148a5074f5e64e8ed83d677c6ef1681054077e68204e772f95d62568580f23
3
+ size 619