system HF staff commited on
Commit
6b63e90
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 +144 -0
  3. bswac.py +89 -0
  4. dataset_infos.json +1 -0
  5. dummy/bswac/1.1.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,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - bs
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 BsWac
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/bswac/
50
+ - **Repository:** https://www.clarin.si/repository/xmlui/handle/11356/1062
51
+ - **Paper:** http://nlp.ffzg.hr/data/publications/nljubesi/ljubesic14-bs.pdf
52
+ - **Leaderboard:**
53
+ - **Point of Contact:** [Nikola Ljubešič](mailto:nikola.ljubesic@ffzg.hr)
54
+
55
+ ### Dataset Summary
56
+
57
+ The Bosnian web corpus bsWaC was built by crawling the .ba 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 (Bosnian vs. Croatian vs. Serbian).
58
+ ### Supported Tasks and Leaderboards
59
+
60
+ [More Information Needed]
61
+
62
+ ### Languages
63
+
64
+ Dataset is monolingual in Bosnian language.
65
+
66
+ ## Dataset Structure
67
+
68
+ ### Data Instances
69
+
70
+ [More Information Needed]
71
+
72
+ ### Data Fields
73
+
74
+ [More Information Needed]
75
+
76
+ ### Data Splits
77
+
78
+ [More Information Needed]
79
+
80
+ ## Dataset Creation
81
+
82
+ ### Curation Rationale
83
+
84
+ [More Information Needed]
85
+
86
+ ### Source Data
87
+
88
+ #### Initial Data Collection and Normalization
89
+
90
+ [More Information Needed]
91
+
92
+ #### Who are the source language producers?
93
+
94
+ [More Information Needed]
95
+
96
+ ### Annotations
97
+
98
+ #### Annotation process
99
+
100
+ [More Information Needed]
101
+
102
+ #### Who are the annotators?
103
+
104
+ [More Information Needed]
105
+
106
+ ### Personal and Sensitive Information
107
+
108
+ [More Information Needed]
109
+
110
+ ## Considerations for Using the Data
111
+
112
+ ### Social Impact of Dataset
113
+
114
+ [More Information Needed]
115
+
116
+ ### Discussion of Biases
117
+
118
+ [More Information Needed]
119
+
120
+ ### Other Known Limitations
121
+
122
+ [More Information Needed]
123
+
124
+ ## Additional Information
125
+
126
+ ### Dataset Curators
127
+
128
+ [More Information Needed]
129
+
130
+ ### Licensing Information
131
+
132
+ Dataset is under the [CC-BY-SA 3.0](http://creativecommons.org/licenses/by-sa/3.0/) license.
133
+
134
+ ### Citation Information
135
+
136
+ ```
137
+ @misc{11356/1062,
138
+ title = {Bosnian web corpus {bsWaC} 1.1},
139
+ author = {Ljube{\v s}i{\'c}, Nikola and Klubi{\v c}ka, Filip},
140
+ url = {http://hdl.handle.net/11356/1062},
141
+ note = {Slovenian language resource repository {CLARIN}.{SI}},
142
+ copyright = {Creative Commons - Attribution-{ShareAlike} 4.0 International ({CC} {BY}-{SA} 4.0)},
143
+ year = {2016} }
144
+ ```
bswac.py ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """Bosnian web corpus bsWaC 1.1"""
16
+
17
+ import datasets
18
+
19
+
20
+ _CITATION = """
21
+ @misc{11356/1062,
22
+ title = {Bosnian web corpus {bsWaC} 1.1},
23
+ author = {Ljube{\v s}i{\'c}, Nikola and Klubi{\v c}ka, Filip},
24
+ url = {http://hdl.handle.net/11356/1062},
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 Bosnian web corpus bsWaC was built by crawling the .ba 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 (Bosnian vs. Croatian vs. Serbian).
32
+
33
+ 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.
34
+ """
35
+
36
+ _LICENSE = "CC BY-SA 4.0"
37
+
38
+ _HOMEPAGE = "http://nlp.ffzg.hr/resources/corpora/bswac/"
39
+ _URLS = [
40
+ "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1062/bsWaC1.1.01.xml.gz",
41
+ "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1062/bsWaC1.1.02.xml.gz",
42
+ "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1062/bsWaC1.1.03.xml.gz",
43
+ ]
44
+
45
+
46
+ class Bswac(datasets.GeneratorBasedBuilder):
47
+ """Bosnian web corpus bsWaC"""
48
+
49
+ VERSION = datasets.Version("1.1.0")
50
+ BUILDER_CONFIGS = [
51
+ datasets.BuilderConfig(
52
+ name="bswac",
53
+ version=VERSION,
54
+ description="The bsWac dataset.",
55
+ ),
56
+ ]
57
+
58
+ def _info(self):
59
+ return datasets.DatasetInfo(
60
+ description=_DESCRIPTION,
61
+ features=datasets.Features(
62
+ {
63
+ "sentence": datasets.Value("string"),
64
+ }
65
+ ),
66
+ supervised_keys=None,
67
+ homepage=_HOMEPAGE,
68
+ license=_LICENSE,
69
+ citation=_CITATION,
70
+ )
71
+
72
+ def _split_generators(self, dl_manager):
73
+ downloaded_file = dl_manager.download_and_extract(_URLS)
74
+ return [
75
+ datasets.SplitGenerator(
76
+ name=datasets.Split.TRAIN,
77
+ gen_kwargs={
78
+ "filepath": downloaded_file,
79
+ },
80
+ ),
81
+ ]
82
+
83
+ def _generate_examples(self, filepath):
84
+ for fp in filepath:
85
+ with open(fp, encoding="utf8") as f:
86
+ for id_, row in enumerate(f):
87
+ yield id_, {
88
+ "sentence": row.strip(),
89
+ }
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"bswac": {"description": "The Bosnian web corpus bsWaC was built by crawling the .ba 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 (Bosnian vs. Croatian vs. Serbian).\n\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/1062,\n title = {Bosnian web corpus {bsWaC} 1.1},\n author = {Ljube{\u000b s}i{'c}, Nikola and Klubi{\u000b c}ka, Filip},\n url = {http://hdl.handle.net/11356/1062},\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/bswac/", "license": "CC BY-SA 4.0", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "bswac", "config_name": "bswac", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 9156258478, "num_examples": 354581267, "dataset_name": "bswac"}}, "download_checksums": {"https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1062/bsWaC1.1.01.xml.gz": {"num_bytes": 692809916, "checksum": "b2e80f04cb44e39d02cf0a0ddb230e1c6418355bb773a2794bb5a8add10e992e"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1062/bsWaC1.1.02.xml.gz": {"num_bytes": 692345532, "checksum": "fa42ef0d123d8fcb46ebf253de1cd0d9932b28f838b5f33730b7724984bc88d1"}, "https://www.clarin.si/repository/xmlui/bitstream/handle/11356/1062/bsWaC1.1.03.xml.gz": {"num_bytes": 603359503, "checksum": "f24fd5d1c3a30ac728a5cd7f376c0f63b585b888ed4630f3b27e6a34f777dcf3"}}, "download_size": 1988514951, "post_processing_size": null, "dataset_size": 9156258478, "size_in_bytes": 11144773429}}
dummy/bswac/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01d69f421f8ac5d6ef7d5a83bb004182cea334215603f67d48f2199dccc9a8b5
3
+ size 1044