system HF staff commited on
Commit
c84a714
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 +145 -0
  3. dataset_infos.json +1 -0
  4. dummy/hrwac/2.1.0/dummy_data.zip +3 -0
  5. hrwac.py +88 -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,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - hr
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 HrWac
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/hrwac/
50
+ - **Repository:** https://www.clarin.si/repository/xmlui/handle/11356/1064
51
+ - **Paper:** http://nlp.ffzg.hr/data/publications/nljubesi/ljubesic11-hrwac.pdf
52
+ - **Leaderboard:**
53
+ - **Point of Contact:** [Nikola Ljubešič](mailto:nikola.ljubesic@ffzg.hr)
54
+
55
+ ### Dataset Summary
56
+
57
+ The Croatian web corpus hrWaC was built by crawling the .hr top-level domain in 2011 and again in 2014. The corpus was near-deduplicated on paragraph level, normalised via diacritic restoration, morphosyntactically annotated and lemmatised. The corpus is shuffled by paragraphs. Each paragraph contains metadata on the URL, domain and language identification (Croatian vs. Serbian).
58
+
59
+ ### Supported Tasks and Leaderboards
60
+
61
+ [More Information Needed]
62
+
63
+ ### Languages
64
+
65
+ Dataset is monolingual in Croatian language.
66
+
67
+ ## Dataset Structure
68
+
69
+ ### Data Instances
70
+
71
+ [More Information Needed]
72
+
73
+ ### Data Fields
74
+
75
+ - sentence: sentences as strings
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
+ @misc{11356/1064,
139
+ title = {Croatian web corpus {hrWaC} 2.1},
140
+ author = {Ljube{\v s}i{\'c}, Nikola and Klubi{\v c}ka, Filip},
141
+ url = {http://hdl.handle.net/11356/1064},
142
+ note = {Slovenian language resource repository {CLARIN}.{SI}},
143
+ copyright = {Creative Commons - Attribution-{ShareAlike} 4.0 International ({CC} {BY}-{SA} 4.0)},
144
+ year = {2016} }
145
+ ```
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"hrwac": {"description": "The Croatian web corpus hrWaC was built by crawling the .hr top-level domain in 2011 and again in 2014. The corpus was near-deduplicated on paragraph level, normalised via diacritic restoration, morphosyntactically annotated and lemmatised. The corpus is shuffled by paragraphs. Each paragraph contains metadata on the URL, domain and language identification (Croatian vs. Serbian).\n\nVersion 2.0 of this corpus is described in http://www.aclweb.org/anthology/W14-0405. Version 2.1 contains newer and better linguistic annotations.\n", "citation": "\n@misc{11356/1064,\n title = {Croatian web corpus {hrWaC} 2.1},\n author = {Ljube{\u000b s}i{'c}, Nikola and Klubi{\u000b c}ka, Filip},\n url = {http://hdl.handle.net/11356/1064},\n note = {Slovenian language resource repository {CLARIN}.{SI}},\n copyright = {Creative Commons - Attribution-{ShareAlike} 4.0 International ({CC} {BY}-{SA} 4.0)},\n year = {2016} }\n", "homepage": "http://nlp.ffzg.hr/resources/corpora/hrwac/", "license": "CC BY-SA 4.0", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "hrwac", "config_name": "hrwac", "version": {"version_str": "2.1.0", "description": null, "major": 2, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 43994569015, "num_examples": 1736944727, "dataset_name": "hrwac"}}, "download_checksums": {"https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.01.xml.gz": {"num_bytes": 685678174, "checksum": "db1df9eb495623d06465c78c764660dcace7e9b89518a3d46b1057d6d20d8557"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.02.xml.gz": {"num_bytes": 680669088, "checksum": "9b261c7e3da77de623b6e36a4b6efb2bf6d78534bcd7c07e6952212fc389d29b"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.03.xml.gz": {"num_bytes": 677399279, "checksum": "560a9701a11b253e5bc4e5bd8da28db61d8315ecf514062be56c35f630e11640"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.04.xml.gz": {"num_bytes": 676444275, "checksum": "7b301be60eebca39d5c84b98b2de3ba02054c021a5cda803ddb8a20619b5ba10"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.05.xml.gz": {"num_bytes": 676146397, "checksum": "29754a581c783569389f2edafd8530b06a2055860b1c058db888f8c204205c90"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.06.xml.gz": {"num_bytes": 675696040, "checksum": "10fe37e13b0bf81c56af79c687a03d88a231d08d1da55881bcbdb04e52709a6a"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.07.xml.gz": {"num_bytes": 670411878, "checksum": "995b42e3397251346d25ce581ec6f6eaed28bfd63d9fe6d42fd477cbfbf8f935"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.08.xml.gz": {"num_bytes": 642181597, "checksum": "ea57eae495971529f89e8d5f4ad2060bc0669cf167d0f0b63bb485816f77e24a"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.09.xml.gz": {"num_bytes": 631749370, "checksum": "c8df904c70252e286a8bd64908aac6d8c54a615a4cf0e06166fd723522226142"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.10.xml.gz": {"num_bytes": 589249518, "checksum": "2648422a22be4335315f50b1b507ac1a99abc16aacca0d40a77d8e434653cdad"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.11.xml.gz": {"num_bytes": 619100109, "checksum": "11dcba3091c35b4c0b5afeb68afaca0629a0ee6d6f88865424532f9eca3d72b9"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.12.xml.gz": {"num_bytes": 675818448, "checksum": "baffb018f902b78e51d156996450231ca4868edf123ddd29ac49cc1f6d26697b"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.13.xml.gz": {"num_bytes": 668173591, "checksum": "3c95836472290fa2b73b1ce623912afb08e2c694325be3cc1803373da811d820"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.14.xml.gz": {"num_bytes": 648503707, "checksum": "3c3330a856449f34d5bfbce71214f370dc8b3959b77baa9cee3af0447f273357"}}, "download_size": 9217221471, "post_processing_size": null, "dataset_size": 43994569015, "size_in_bytes": 53211790486}}
dummy/hrwac/2.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc31b4756cad40ee90216c6f801b50224d9a177d996c619fa559d661454ca248
3
+ size 4425
hrwac.py ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 web corpus hrWaC 2.1"""
16
+
17
+ import datasets
18
+
19
+
20
+ _CITATION = """
21
+ @misc{11356/1064,
22
+ title = {Croatian web corpus {hrWaC} 2.1},
23
+ author = {Ljube{\v s}i{\'c}, Nikola and Klubi{\v c}ka, Filip},
24
+ url = {http://hdl.handle.net/11356/1064},
25
+ note = {Slovenian language resource repository {CLARIN}.{SI}},
26
+ copyright = {Creative Commons - Attribution-{ShareAlike} 4.0 International ({CC} {BY}-{SA} 4.0)},
27
+ year = {2016} }
28
+ """
29
+
30
+ _DESCRIPTION = """\
31
+ The Croatian web corpus hrWaC was built by crawling the .hr top-level domain in 2011 and again in 2014. The corpus was near-deduplicated on paragraph level, normalised via diacritic restoration, morphosyntactically annotated and lemmatised. The corpus is shuffled by paragraphs. Each paragraph contains metadata on the URL, domain and language identification (Croatian vs. Serbian).
32
+
33
+ Version 2.0 of this corpus is described in http://www.aclweb.org/anthology/W14-0405. Version 2.1 contains newer and better linguistic annotations.
34
+ """
35
+
36
+ _LICENSE = "CC BY-SA 4.0"
37
+
38
+ _HOMEPAGE = "http://nlp.ffzg.hr/resources/corpora/hrwac/"
39
+ _URLS = [
40
+ "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1064/hrWaC2.1.{:02d}.xml.gz".format(i + 1)
41
+ for i in range(14)
42
+ ]
43
+
44
+
45
+ class Hrwac(datasets.GeneratorBasedBuilder):
46
+ """Croatian web corpus hrWaC"""
47
+
48
+ VERSION = datasets.Version("2.1.0")
49
+ BUILDER_CONFIGS = [
50
+ datasets.BuilderConfig(
51
+ name="hrwac",
52
+ version=VERSION,
53
+ description="The hrWac dataset.",
54
+ ),
55
+ ]
56
+
57
+ def _info(self):
58
+ return datasets.DatasetInfo(
59
+ description=_DESCRIPTION,
60
+ features=datasets.Features(
61
+ {
62
+ "sentence": datasets.Value("string"),
63
+ }
64
+ ),
65
+ supervised_keys=None,
66
+ homepage=_HOMEPAGE,
67
+ license=_LICENSE,
68
+ citation=_CITATION,
69
+ )
70
+
71
+ def _split_generators(self, dl_manager):
72
+ downloaded_file = dl_manager.download_and_extract(_URLS)
73
+ return [
74
+ datasets.SplitGenerator(
75
+ name=datasets.Split.TRAIN,
76
+ gen_kwargs={
77
+ "filepath": downloaded_file,
78
+ },
79
+ ),
80
+ ]
81
+
82
+ def _generate_examples(self, filepath):
83
+ for fp in filepath:
84
+ with open(fp, encoding="utf8") as f:
85
+ for id_, row in enumerate(f):
86
+ yield id_, {
87
+ "sentence": row.strip(),
88
+ }