yunosuke-github
commited on
Commit
•
32767ff
1
Parent(s):
74e63fc
test
Browse files- sentiment-train.py +13 -1
sentiment-train.py
CHANGED
@@ -7,7 +7,6 @@ _DESCRIPTION = """\
|
|
7 |
テストテスト
|
8 |
"""
|
9 |
|
10 |
-
|
11 |
class TestConfig(datasets.BuilderConfig):
|
12 |
def __init__(self, **kwargs):
|
13 |
super(TestConfig, self).__init__(**kwargs)
|
@@ -25,5 +24,18 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
25 |
def _info(self):
|
26 |
return datasets.DatasetInfo(
|
27 |
description=_DESCRIPTION,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
task_templates=[],
|
29 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
テストテスト
|
8 |
"""
|
9 |
|
|
|
10 |
class TestConfig(datasets.BuilderConfig):
|
11 |
def __init__(self, **kwargs):
|
12 |
super(TestConfig, self).__init__(**kwargs)
|
|
|
24 |
def _info(self):
|
25 |
return datasets.DatasetInfo(
|
26 |
description=_DESCRIPTION,
|
27 |
+
features=datasets.Features(
|
28 |
+
{
|
29 |
+
"id": datasets.Value("int64"),
|
30 |
+
"text": datasets.Value("string"),
|
31 |
+
"label": datasets.Value("int64")
|
32 |
+
}
|
33 |
+
),
|
34 |
task_templates=[],
|
35 |
)
|
36 |
+
|
37 |
+
def _split_generators(self, dl_manager):
|
38 |
+
pass
|
39 |
+
|
40 |
+
def _generate_examples(self, filepath):
|
41 |
+
pass
|