system HF staff commited on
Commit
14013be
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/srwac/1.1.0/dummy_data.zip +3 -0
  5. srwac.py +91 -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
+ - sr
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 SrWac
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/srwac/
50
+ - **Repository:** https://www.clarin.si/repository/xmlui/handle/11356/1063
51
+ - **Paper:** http://nlp.ffzg.hr/data/publications/nljubesi/ljubesic14-bs.pdf
52
+ - **Leaderboard:**
53
+ - **Point of Contact:** [Nikola Ljubešič](mailto:[email protected])
54
+
55
+ ### Dataset Summary
56
+
57
+ The Serbian web corpus srWaC was built by crawling the .rs top-level domain 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 (Serbian vs. Croatian).
58
+
59
+ ### Supported Tasks and Leaderboards
60
+
61
+ [More Information Needed]
62
+
63
+ ### Languages
64
+
65
+ Dataset is monolingual in Serbian 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
+ @misc{11356/1063,
139
+ title = {Serbian web corpus {srWaC} 1.1},
140
+ author = {Ljube{\v s}i{\'c}, Nikola and Klubi{\v c}ka, Filip},
141
+ url = {http://hdl.handle.net/11356/1063},
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
+ {"srwac": {"description": "The Serbian web corpus srWaC was built by crawling the .rs top-level domain 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 (Serbian vs. Croatian).\nVersion 1.0 of this corpus is described in http://www.aclweb.org/anthology/W14-0405. Version 1.1 contains newer and better linguistic annotations.\n", "citation": "\n @misc{11356/1063,\n title = {Serbian web corpus {srWaC} 1.1},\n author = {Ljube{\u000b s}i{'c}, Nikola and Klubi{\u000b c}ka, Filip},\n url = {http://hdl.handle.net/11356/1063},\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/srwac/", "license": "CC BY-SA 4.0", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "srwac", "config_name": "srwac", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 17470890484, "num_examples": 688805174, "dataset_name": "srwac"}}, "download_checksums": {"https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.01.xml.gz": {"num_bytes": 682731378, "checksum": "b36c4ff5305daf9c389b870ad1b980fa959908d56727d5a20a3670aef0f67326"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.02.xml.gz": {"num_bytes": 680507297, "checksum": "f5d4a8478edd1afdaa998251cc8bd7b2bfdad5805acd9bc473e542c69301b234"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.03.xml.gz": {"num_bytes": 679119710, "checksum": "231729dd8f6784a87924de5cc0479bf94989a2c37f4a68f105fb05591c78f8a9"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.04.xml.gz": {"num_bytes": 677973289, "checksum": "93f4be45d59a1eed1aa2e97a072e1935049cce9821acb1b6af566779bacc8cb0"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.05.xml.gz": {"num_bytes": 677074696, "checksum": "07093adbaa4d3938aca8a97e404dc0e4cabf3fe91847628079e6cb81701ff521"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.06.xml.gz": {"num_bytes": 369906389, "checksum": "f8b439ac5a726aaf86bd5cbf3ddc4549c5d0c506e091c7c8c35c1ebf90e56136"}}, "download_size": 3767312759, "post_processing_size": null, "dataset_size": 17470890484, "size_in_bytes": 21238203243}}
dummy/srwac/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a19cc65718a662fcf796ee307dfe10487537153777645328501ca1b6857da1b
3
+ size 2711
srwac.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
+ """Serbian web corpus bsWaC 1.1"""
16
+
17
+ import datasets
18
+
19
+
20
+ _CITATION = """
21
+ @misc{11356/1063,
22
+ title = {Serbian web corpus {srWaC} 1.1},
23
+ author = {Ljube{\v s}i{\'c}, Nikola and Klubi{\v c}ka, Filip},
24
+ url = {http://hdl.handle.net/11356/1063},
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 Serbian web corpus srWaC was built by crawling the .rs top-level domain 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 (Serbian vs. Croatian).
32
+ Version 1.0 of this corpus is described in http://www.aclweb.org/anthology/W14-0405. Version 1.1 contains newer and better linguistic annotations.
33
+ """
34
+
35
+ _LICENSE = "CC BY-SA 4.0"
36
+
37
+ _HOMEPAGE = "http://nlp.ffzg.hr/resources/corpora/srwac/"
38
+ _URLS = [
39
+ "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.01.xml.gz",
40
+ "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.02.xml.gz",
41
+ "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.03.xml.gz",
42
+ "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.04.xml.gz",
43
+ "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.05.xml.gz",
44
+ "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1063/srWaC1.1.06.xml.gz",
45
+ ]
46
+
47
+
48
+ class Srwac(datasets.GeneratorBasedBuilder):
49
+ """Serbian web corpus bsWaC"""
50
+
51
+ VERSION = datasets.Version("1.1.0")
52
+ BUILDER_CONFIGS = [
53
+ datasets.BuilderConfig(
54
+ name="srwac",
55
+ version=VERSION,
56
+ description="The SrWac dataset.",
57
+ ),
58
+ ]
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=_HOMEPAGE,
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
+ for fp in filepath:
87
+ with open(fp, encoding="utf8") as f:
88
+ for id_, row in enumerate(f):
89
+ yield id_, {
90
+ "sentence": row.strip(),
91
+ }