Sebastian Gehrmann
commited on
Commit
•
a167b33
1
Parent(s):
6e83e03
- dstc10_track2_task2.py +28 -41
dstc10_track2_task2.py
CHANGED
@@ -46,20 +46,10 @@ _URLs = {
|
|
46 |
}
|
47 |
|
48 |
class DSTC10Track2Task2(datasets.GeneratorBasedBuilder):
|
49 |
-
|
50 |
VERSION = datasets.Version("1.0.0")
|
51 |
|
52 |
BUILDER_CONFIGS = [
|
53 |
-
BuilderConfig(
|
54 |
-
name="detection",
|
55 |
-
version=VERSION,
|
56 |
-
description="",
|
57 |
-
),
|
58 |
-
BuilderConfig(
|
59 |
-
name="selection",
|
60 |
-
version=VERSION,
|
61 |
-
description="",
|
62 |
-
),
|
63 |
BuilderConfig(
|
64 |
name="generation",
|
65 |
version=VERSION,
|
@@ -71,36 +61,33 @@ class DSTC10Track2Task2(datasets.GeneratorBasedBuilder):
|
|
71 |
|
72 |
def _info(self):
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
)
|
102 |
-
else:
|
103 |
-
raise Exception(f"Unexpected config name: {self.config.name}")
|
104 |
|
105 |
return datasets.DatasetInfo(
|
106 |
description=_DESCRIPTION,
|
|
|
46 |
}
|
47 |
|
48 |
class DSTC10Track2Task2(datasets.GeneratorBasedBuilder):
|
49 |
+
|
50 |
VERSION = datasets.Version("1.0.0")
|
51 |
|
52 |
BUILDER_CONFIGS = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
BuilderConfig(
|
54 |
name="generation",
|
55 |
version=VERSION,
|
|
|
61 |
|
62 |
def _info(self):
|
63 |
|
64 |
+
features = datasets.Features(
|
65 |
+
{
|
66 |
+
"id": datasets.Value("string"),
|
67 |
+
"gem_id": datasets.Value("string"),
|
68 |
+
"turns": [
|
69 |
+
{
|
70 |
+
"speaker": datasets.Value("string"),
|
71 |
+
"text": datasets.Value("string"),
|
72 |
+
"nbest": [
|
73 |
+
{
|
74 |
+
"hyp": datasets.Value("string"),
|
75 |
+
"score": datasets.Value("float")
|
76 |
+
}
|
77 |
+
]
|
78 |
+
}
|
79 |
+
],
|
80 |
+
"knowledge":
|
81 |
+
{
|
82 |
+
"domain": datasets.Value("string"),
|
83 |
+
"entity_name": datasets.Value("string"),
|
84 |
+
"title": datasets.Value("string"),
|
85 |
+
"body": datasets.Value("string"),
|
86 |
+
},
|
87 |
+
"response": datasets.Value("string"),
|
88 |
+
"source": datasets.Value("string"),
|
89 |
+
}
|
90 |
+
)
|
|
|
|
|
|
|
91 |
|
92 |
return datasets.DatasetInfo(
|
93 |
description=_DESCRIPTION,
|