albertvillanova HF staff commited on
Commit
7dc6be0
1 Parent(s): 3c7aa3d

Convert dataset to Parquet (#3)

Browse files

- Convert dataset to Parquet (8f8ffe52c1026a2d4272967c1110ad7bda8a0a5f)
- Delete loading script (d37aaca515b3683fc7d038479d031ae56018ffed)
- Delete data file (61fad2470951177bded34f159e07409a933decc2)

README.md CHANGED
@@ -29,8 +29,13 @@ dataset_info:
29
  - name: train
30
  num_bytes: 3987228544
31
  num_examples: 24745986
32
- download_size: 1620361999
33
  dataset_size: 3987228544
 
 
 
 
 
34
  ---
35
 
36
  # Dataset Card for caWaC
 
29
  - name: train
30
  num_bytes: 3987228544
31
  num_examples: 24745986
32
+ download_size: 2835862485
33
  dataset_size: 3987228544
34
+ configs:
35
+ - config_name: default
36
+ data_files:
37
+ - split: train
38
+ path: data/train-*
39
  ---
40
 
41
  # Dataset Card for caWaC
cawac.py DELETED
@@ -1,91 +0,0 @@
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
- _HOMEPAGE = "http://nlp.ffzg.hr/resources/corpora/cawac/"
54
- # Source: http://nlp.ffzg.hr/data/corpora/cawac.uniq.sortr.gz
55
- _URLS = "data/cawac.uniq.sortr.gz"
56
-
57
-
58
- class Cawac(datasets.GeneratorBasedBuilder):
59
- """caWaC: Catalan web corpus dataset."""
60
-
61
- def _info(self):
62
- return datasets.DatasetInfo(
63
- description=_DESCRIPTION,
64
- features=datasets.Features(
65
- {
66
- "sentence": datasets.Value("string"),
67
- }
68
- ),
69
- supervised_keys=None,
70
- homepage=_HOMEPAGE,
71
- license=_LICENSE,
72
- citation=_CITATION,
73
- )
74
-
75
- def _split_generators(self, dl_manager):
76
- downloaded_file = dl_manager.download_and_extract(_URLS)
77
- return [
78
- datasets.SplitGenerator(
79
- name=datasets.Split.TRAIN,
80
- gen_kwargs={
81
- "filepath": downloaded_file,
82
- },
83
- ),
84
- ]
85
-
86
- def _generate_examples(self, filepath):
87
- with open(filepath, encoding="utf8") as f:
88
- for id_, row in enumerate(f):
89
- yield id_, {
90
- "sentence": row,
91
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/{cawac.uniq.sortr.gz → train-00000-of-00008.parquet} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:581af7712663214acd437c812b65cda875a42294bcc40c8e8cadc3d9eee3b442
3
- size 1620361999
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e7df6943c543636cfcc3f5b811deb7d65f79b3e99068c39004e5927d67124e2
3
+ size 355234245
data/train-00001-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79a19f4c9966d3e79542ce7c0ff46ec21423e7f1b9e333184a0e841a7de7f5e5
3
+ size 354817806
data/train-00002-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ca650b910fb926bd039bcaca74d6b65746dcad5b30ad898740102d9e950faf2
3
+ size 354238881
data/train-00003-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6fefe89e8b55d5f73f68d435d477ece7a500de9456f84f6102af6fa7fe9895d
3
+ size 355620964
data/train-00004-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a55c0ce522abb6b1c9c1934f1b62c15d82eba0c2b65f0299d9e693f196b6add5
3
+ size 353365475
data/train-00005-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aa77d13d221c2b2cae875234a73e690421480335949096395f3e1647e2dcca3
3
+ size 353232333
data/train-00006-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a697952148ec569892c6b66abe572608362a855f0cbb1a445634a4e3d0567de7
3
+ size 354318420
data/train-00007-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26e184f302af218911f3dac4e376848d9565415676315df3314bbf2f2e8019d3
3
+ size 355034361