Xidong commited on
Commit
8d9c5ca
Β·
1 Parent(s): 6be0a87

Update CMB.py

Browse files
Files changed (1) hide show
  1. CMB.py +5 -5
CMB.py CHANGED
@@ -14,7 +14,7 @@
14
  # limitations under the License.
15
 
16
  # Lint as: python3
17
- """The General Language Understanding Evaluation (GLUE) benchmark."""
18
 
19
  import csv
20
  import os
@@ -33,7 +33,7 @@ coming soon~
33
 
34
  _CMB_DESCRIPTION = """\
35
 
36
- coming soon~
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 GLUE."""
45
 
46
  def __init__(
47
  self,
@@ -63,7 +63,7 @@ class CMBConfig(datasets.BuilderConfig):
63
 
64
 
65
  class CMB(datasets.GeneratorBasedBuilder):
66
- """The General Language Understanding Evaluation (GLUE) benchmark."""
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-test-qa.json'),
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
  )