Piotr Przemielewski
commited on
Commit
·
bd74bc7
1
Parent(s):
d08d6ef
remove scripts
Browse files- loader.py +0 -30
- reuters15k.py +0 -36
loader.py
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
import datasets
|
2 |
-
|
3 |
-
class ColorectalCarcinomaMicrobiomeFengQConfig(datasets.GeneratorBasedBuilder):
|
4 |
-
BUILDER_CONFIGS = [
|
5 |
-
datasets.BuilderConfig(
|
6 |
-
name="reuters",
|
7 |
-
description=" a collection of documents that appeared on Reuters newswire in 1987",
|
8 |
-
)
|
9 |
-
]
|
10 |
-
|
11 |
-
DEFAULT_CONFIG_NAME = "reuters"
|
12 |
-
|
13 |
-
def _split_generators(self, dl_manager):
|
14 |
-
if self.config.name == "reuters":
|
15 |
-
return [
|
16 |
-
datasets.SplitGenerator(
|
17 |
-
name=datasets.Split.TRAIN,
|
18 |
-
gen_kwargs={
|
19 |
-
"filepath": "reutersidf10k_train.npy",
|
20 |
-
"split": "train",
|
21 |
-
},
|
22 |
-
),
|
23 |
-
datasets.SplitGenerator(
|
24 |
-
name=datasets.Split.TEST,
|
25 |
-
gen_kwargs={
|
26 |
-
"filepath": "reutersidf10k_test.npy",
|
27 |
-
"split": "test",
|
28 |
-
},
|
29 |
-
),
|
30 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reuters15k.py
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
import datasets
|
2 |
-
|
3 |
-
class ColorectalCarcinomaMicrobiomeFengQConfig(datasets.GeneratorBasedBuilder):
|
4 |
-
BUILDER_CONFIGS = [
|
5 |
-
datasets.BuilderConfig(
|
6 |
-
name="reuters",
|
7 |
-
description=" A collection of documents that appeared on Reuters newswire in 1987",
|
8 |
-
)
|
9 |
-
]
|
10 |
-
|
11 |
-
def _info(self):
|
12 |
-
return datasets.DatasetInfo(
|
13 |
-
description="",
|
14 |
-
citation="",
|
15 |
-
homepage="",
|
16 |
-
version=datasets.Version("0.1.0"),
|
17 |
-
)
|
18 |
-
|
19 |
-
DEFAULT_CONFIG_NAME = "reuters"
|
20 |
-
|
21 |
-
def _split_generators(self, dl_manager):
|
22 |
-
if self.config.name == "reuters":
|
23 |
-
return [
|
24 |
-
datasets.SplitGenerator(
|
25 |
-
name=datasets.Split.TRAIN,
|
26 |
-
gen_kwargs={
|
27 |
-
"filepath": "reutersidf10k_train.npy",
|
28 |
-
},
|
29 |
-
),
|
30 |
-
datasets.SplitGenerator(
|
31 |
-
name=datasets.Split.TEST,
|
32 |
-
gen_kwargs={
|
33 |
-
"filepath": "reutersidf10k_test.npy",
|
34 |
-
},
|
35 |
-
),
|
36 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|