yunosuke-github
commited on
Commit
•
4ba75be
1
Parent(s):
711bd0c
test
Browse files
data.py
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import datasets
|
2 |
+
|
3 |
+
_DESCRIPTION = """\
|
4 |
+
これはテスト説明
|
5 |
+
テストテスト
|
6 |
+
"""
|
7 |
+
|
8 |
+
|
9 |
+
class TestConfig(datasets.BuilderConfig):
|
10 |
+
def __init__(self, **kwargs):
|
11 |
+
super(TestConfig, self).__init__(**kwargs)
|
12 |
+
|
13 |
+
|
14 |
+
class Test(datasets.GeneratorBasedBuilder):
|
15 |
+
BUILDER_CONFIG_CLASS = TestConfig
|
16 |
+
|
17 |
+
BUILDER_CONFIGS = [
|
18 |
+
TestConfig(
|
19 |
+
name="default",
|
20 |
+
),
|
21 |
+
]
|
22 |
+
|
23 |
+
def _info(self):
|
24 |
+
return datasets.DatasetInfo(
|
25 |
+
description=_DESCRIPTION,
|
26 |
+
task_templates=[],
|
27 |
+
)
|