Update CMB.py
Browse files
CMB.py
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
# limitations under the License.
|
15 |
|
16 |
# Lint as: python3
|
17 |
-
"""The
|
18 |
|
19 |
import csv
|
20 |
import os
|
@@ -33,7 +33,7 @@ coming soon~
|
|
33 |
|
34 |
_CMB_DESCRIPTION = """\
|
35 |
|
36 |
-
|
37 |
|
38 |
"""
|
39 |
|
@@ -41,7 +41,7 @@ _DATASETS_FILE = "https://huggingface.co/datasets/FreedomIntelligence/CMB/resolv
|
|
41 |
|
42 |
|
43 |
class CMBConfig(datasets.BuilderConfig):
|
44 |
-
"""BuilderConfig for
|
45 |
|
46 |
def __init__(
|
47 |
self,
|
@@ -63,7 +63,7 @@ class CMBConfig(datasets.BuilderConfig):
|
|
63 |
|
64 |
|
65 |
class CMB(datasets.GeneratorBasedBuilder):
|
66 |
-
"""The
|
67 |
|
68 |
BUILDER_CONFIGS = [
|
69 |
CMBConfig(
|
@@ -173,7 +173,7 @@ class CMB(datasets.GeneratorBasedBuilder):
|
|
173 |
datasets.SplitGenerator(
|
174 |
name=datasets.Split.TEST,
|
175 |
gen_kwargs={
|
176 |
-
"data_file": os.path.join(main_data_dir, 'CMB-
|
177 |
"split": "test",
|
178 |
},
|
179 |
)
|
|
|
14 |
# limitations under the License.
|
15 |
|
16 |
# Lint as: python3
|
17 |
+
"""The Chinese Medical Benchmark (CMB)"""
|
18 |
|
19 |
import csv
|
20 |
import os
|
|
|
33 |
|
34 |
_CMB_DESCRIPTION = """\
|
35 |
|
36 |
+
Chinese Medical Benchmark
|
37 |
|
38 |
"""
|
39 |
|
|
|
41 |
|
42 |
|
43 |
class CMBConfig(datasets.BuilderConfig):
|
44 |
+
"""BuilderConfig for CMB"""
|
45 |
|
46 |
def __init__(
|
47 |
self,
|
|
|
63 |
|
64 |
|
65 |
class CMB(datasets.GeneratorBasedBuilder):
|
66 |
+
"""The Chinese Medical Benchmark (CMB)"""
|
67 |
|
68 |
BUILDER_CONFIGS = [
|
69 |
CMBConfig(
|
|
|
173 |
datasets.SplitGenerator(
|
174 |
name=datasets.Split.TEST,
|
175 |
gen_kwargs={
|
176 |
+
"data_file": os.path.join(main_data_dir, 'CMB-Clin-qa.json'),
|
177 |
"split": "test",
|
178 |
},
|
179 |
)
|