stas commited on
Commit
516fecd
1 Parent(s): 13c338d

correction

Browse files
Files changed (1) hide show
  1. c4-en-10k.py +10 -16
c4-en-10k.py CHANGED
@@ -22,24 +22,18 @@ import datasets
22
 
23
 
24
  _CITATION = """\
25
- @inproceedings{OrtizSuarezSagotRomary2019,
26
- author = {Pedro Javier {Ortiz Su{'a}rez} and Benoit Sagot and Laurent Romary},
27
- title = {Asynchronous pipelines for processing huge corpora on medium to low resource infrastructures},
28
- series = {Proceedings of the Workshop on Challenges in the Management of Large Corpora (CMLC-7) 2019. Cardiff, 22nd July 2019},
29
- editor = {Piotr Bański and Adrien Barbaresi and Hanno Biber and Evelyn Breiteneder and Simon Clematide and Marc Kupietz and Harald L{"u}ngen and Caroline Iliadi},
30
- publisher = {Leibniz-Institut f{"u}r Deutsche Sprache},
31
- address = {Mannheim},
32
- doi = {10.14618/ids-pub-9021},
33
- url = {http://nbn-resolving.de/urn:nbn:de:bsz:mh39-90215},
34
- pages = {9 -- 16},
35
- year = {2019},
36
- abstract = {Common Crawl is a considerably large, heterogeneous multilingual corpus comprised of crawled documents from the internet, surpassing 20TB of data and distributed as a set of more than 50 thousand plain text files where each contains many documents written in a wide variety of languages. Even though each document has a metadata block associated to it, this data lacks any information about the language in which each document is written, making it extremely difficult to use Common Crawl for monolingual applications. We propose a general, highly parallel, multithreaded pipeline to clean and classify Common Crawl by language; we specifically design it so that it runs efficiently on medium to low resource infrastructures where I/O speeds are the main constraint. We develop the pipeline so that it can be easily reapplied to any kind of heterogeneous corpus and so that it can be parameterised to a wide range of infrastructures. We also distribute a 6.3TB version of Common Crawl, filtered, classified by language, shuffled at line level in order to avoid copyright issues, and ready to be used for NLP applications.},
37
- language = {en}
38
  }
39
  """
40
 
41
  _DESCRIPTION = """\
42
- This is a small subset representing 10K records from the original C4 dataset, "unshuffled_deduplicated_en" subset - created for testing. The records were extracted after having been shuffled.
43
 
44
  The full 1TB+ dataset is at https://huggingface.co/datasets/c4.
45
  """
@@ -47,7 +41,7 @@ The full 1TB+ dataset is at https://huggingface.co/datasets/c4.
47
  _URL = "https://cdn-datasets.huggingface.co/nlp/datasets/c4/c4-en-10k.tar.xz"
48
 
49
  class C4En10k(datasets.GeneratorBasedBuilder):
50
- """The Open WebText dataset."""
51
 
52
  BUILDER_CONFIGS = [
53
  datasets.BuilderConfig(
@@ -61,7 +55,7 @@ class C4En10k(datasets.GeneratorBasedBuilder):
61
  return datasets.DatasetInfo(
62
  description=_DESCRIPTION,
63
  features=datasets.Features({"text": datasets.Value("string")}),
64
- homepage="https://c4-corpus.com/",
65
  citation=_CITATION,
66
  )
67
 
22
 
23
 
24
  _CITATION = """\
25
+ @article{2019t5,
26
+ author = {Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu},
27
+ title = {Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer},
28
+ journal = {arXiv e-prints},
29
+ year = {2019},
30
+ archivePrefix = {arXiv},
31
+ eprint = {1910.10683},
 
 
 
 
 
 
32
  }
33
  """
34
 
35
  _DESCRIPTION = """\
36
+ This is a small subset representing the first 10K records of the original C4 dataset, "en" subset - created for testing. The records were extracted after having been shuffled.
37
 
38
  The full 1TB+ dataset is at https://huggingface.co/datasets/c4.
39
  """
41
  _URL = "https://cdn-datasets.huggingface.co/nlp/datasets/c4/c4-en-10k.tar.xz"
42
 
43
  class C4En10k(datasets.GeneratorBasedBuilder):
44
+ """The C4 dataset."""
45
 
46
  BUILDER_CONFIGS = [
47
  datasets.BuilderConfig(
55
  return datasets.DatasetInfo(
56
  description=_DESCRIPTION,
57
  features=datasets.Features({"text": datasets.Value("string")}),
58
+ homepage="https://huggingface.co/datasets/allenai/c4/",
59
  citation=_CITATION,
60
  )
61