Clémentine commited on
Commit ·
c106d7c
1
Parent(s): 82f2f77
pile
Browse files- arxiv/test.jsonl +0 -0
- arxiv/test106.jsonl +1 -0
- arxiv/test118.jsonl +1 -0
- arxiv/test123.jsonl +1 -0
- arxiv/test133.jsonl +1 -0
- arxiv/test140.jsonl +1 -0
- arxiv/test141.jsonl +1 -0
- arxiv/test142.jsonl +1 -0
- arxiv/test148.jsonl +1 -0
- arxiv/test157.jsonl +1 -0
- arxiv/test168.jsonl +1 -0
- arxiv/test180.jsonl +1 -0
- arxiv/test193.jsonl +1 -0
- arxiv/test208.jsonl +1 -0
- arxiv/test211.jsonl +1 -0
- arxiv/test22.jsonl +1 -0
- arxiv/test221.jsonl +1 -0
- arxiv/test234.jsonl +1 -0
- arxiv/test249.jsonl +0 -0
- arxiv/test25.jsonl +1 -0
- arxiv/test60.jsonl +1 -0
- arxiv/test61.jsonl +1 -0
- arxiv/test63.jsonl +1 -0
- arxiv/test64.jsonl +1 -0
- arxiv/test76.jsonl +1 -0
- arxiv/test84.jsonl +1 -0
- arxiv/test95.jsonl +1 -0
- arxiv/test99.jsonl +1 -0
- bibliotik/test.jsonl +0 -0
- commoncrawl/test.jsonl +0 -0
- dm-mathematics/test.jsonl +0 -0
- enron/test.jsonl +0 -0
- europarl/test.jsonl +0 -0
- freelaw/test.jsonl +0 -0
- github/test.jsonl +0 -0
- gutenberg/test.jsonl +0 -0
- hackernews/test.jsonl +0 -0
- nih-exporter/test.jsonl +0 -0
- opensubtitles/test.jsonl +0 -0
- openwebtext2/test.jsonl +0 -0
- pile_helm.py +75 -0
- pubmed-abstracts/test.jsonl +0 -0
- pubmed-central/test.jsonl +0 -0
- stackexchange/test.jsonl +0 -0
- uspto/test.jsonl +0 -0
- wikipedia/test.jsonl +0 -0
- youtubesubtitles/test.jsonl +0 -0
arxiv/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
arxiv/test106.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test118.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test123.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test133.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test140.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test141.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test142.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test148.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test157.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test168.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test180.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test193.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test208.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test211.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test22.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test221.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test234.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test249.jsonl
ADDED
|
File without changes
|
arxiv/test25.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test60.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test61.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test63.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test64.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test76.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test84.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test95.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
arxiv/test99.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"text"
|
bibliotik/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
commoncrawl/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dm-mathematics/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
enron/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
europarl/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
freelaw/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
github/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gutenberg/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
hackernews/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
nih-exporter/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
opensubtitles/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
openwebtext2/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pile_helm.py
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import datasets
|
| 2 |
+
import os
|
| 3 |
+
import json
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
_CITATION = """
|
| 7 |
+
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
_DESCRIPTION = """
|
| 11 |
+
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
+
names = [
|
| 15 |
+
"github",
|
| 16 |
+
"arxiv",
|
| 17 |
+
"wikipedia",
|
| 18 |
+
"opensubtitles",
|
| 19 |
+
"openwebtext2",
|
| 20 |
+
"gutenberg",
|
| 21 |
+
"dm-mathematics",
|
| 22 |
+
"enron",
|
| 23 |
+
"bibliotik",
|
| 24 |
+
"pubmed-abstracts",
|
| 25 |
+
"youtubesubtitles",
|
| 26 |
+
"hackernews",
|
| 27 |
+
"commoncrawl",
|
| 28 |
+
"europarl",
|
| 29 |
+
"uspto",
|
| 30 |
+
"freelaw",
|
| 31 |
+
"nih-exporter",
|
| 32 |
+
"stackexchange",
|
| 33 |
+
"pubmed-central",
|
| 34 |
+
"ubuntu-irc",
|
| 35 |
+
"bookcorpus",
|
| 36 |
+
"philpapers",
|
| 37 |
+
]
|
| 38 |
+
|
| 39 |
+
class Builder(datasets.GeneratorBasedBuilder):
|
| 40 |
+
VERSION = datasets.Version("1.0.0")
|
| 41 |
+
|
| 42 |
+
BUILDER_CONFIGS = [
|
| 43 |
+
datasets.BuilderConfig(name=name, version=datasets.Version("1.0.0"), description=_DESCRIPTION)
|
| 44 |
+
for name in names
|
| 45 |
+
]
|
| 46 |
+
|
| 47 |
+
def _info(self):
|
| 48 |
+
features = datasets.Features(
|
| 49 |
+
{
|
| 50 |
+
"text": datasets.Value("string"),
|
| 51 |
+
}
|
| 52 |
+
)
|
| 53 |
+
return datasets.DatasetInfo(
|
| 54 |
+
description=_DESCRIPTION,
|
| 55 |
+
features=features,
|
| 56 |
+
homepage="",
|
| 57 |
+
license="",
|
| 58 |
+
citation=_CITATION,
|
| 59 |
+
)
|
| 60 |
+
|
| 61 |
+
def _split_generators(self, dl_manager):
|
| 62 |
+
test_json = dl_manager.download(os.path.join(self.config.name, "test.jsonl"))
|
| 63 |
+
|
| 64 |
+
return [
|
| 65 |
+
datasets.SplitGenerator(
|
| 66 |
+
name=datasets.Split.TEST,
|
| 67 |
+
gen_kwargs={"path": test_json},
|
| 68 |
+
),
|
| 69 |
+
]
|
| 70 |
+
|
| 71 |
+
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 72 |
+
def _generate_examples(self, path):
|
| 73 |
+
with open(path, encoding="utf-8") as f:
|
| 74 |
+
for key, row in enumerate(f):
|
| 75 |
+
yield key, json.loads(row)
|
pubmed-abstracts/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pubmed-central/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
stackexchange/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
uspto/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wikipedia/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
youtubesubtitles/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|