sh110495 commited on
Commit
3b34835
1 Parent(s): ecd2d16

correct wrong feature name

Browse files
Files changed (1) hide show
  1. klue-re.py +16 -17
klue-re.py CHANGED
@@ -25,7 +25,6 @@ class KoreanNewspaper(datasets.GeneratorBasedBuilder):
25
  ),
26
  ]
27
 
28
-
29
  def _info(self):
30
  return datasets.DatasetInfo(
31
  description=_DESCRIPTION,
@@ -34,23 +33,23 @@ class KoreanNewspaper(datasets.GeneratorBasedBuilder):
34
  "guid": datasets.Value("string"),
35
  "label": datasets.Value("string"),
36
  "object_entity": datasets.features.Sequence(
37
- {
38
- "word": datasets.Value("string"),
39
- "start_idx": datasets.Value("int32"),
40
- "end_idx": datasets.Value("int32"),
41
- "type": datasets.Value("string"),
42
- }
43
- ),
44
  "sentence": datasets.Value("string"),
45
  "source": datasets.Value("string"),
46
  "subject_entity": datasets.features.Sequence(
47
- {
48
- "word": datasets.Value("string"),
49
- "start_idx": datasets.Value("int32"),
50
- "end_idx": datasets.Value("int32"),
51
- "type": datasets.Value("string"),
52
- }
53
- ),
54
  }
55
  ),
56
  # No default supervised_keys (as we have to pass both question
@@ -84,8 +83,8 @@ class KoreanNewspaper(datasets.GeneratorBasedBuilder):
84
  yield key, {
85
  "guid" : guid,
86
  "label" : label,
87
- "object_entity" : object_entity,
88
- "subject_entity" : subject_entity,
89
  "source" : source,
90
  "sentence" : sentence,
91
  }
 
25
  ),
26
  ]
27
 
 
28
  def _info(self):
29
  return datasets.DatasetInfo(
30
  description=_DESCRIPTION,
 
33
  "guid": datasets.Value("string"),
34
  "label": datasets.Value("string"),
35
  "object_entity": datasets.features.Sequence(
36
+ {
37
+ "word": datasets.Value("string"),
38
+ "start_idx": datasets.Value("int32"),
39
+ "end_idx": datasets.Value("int32"),
40
+ "type": datasets.Value("string"),
41
+ }
42
+ ),
43
  "sentence": datasets.Value("string"),
44
  "source": datasets.Value("string"),
45
  "subject_entity": datasets.features.Sequence(
46
+ {
47
+ "word": datasets.Value("string"),
48
+ "start_idx": datasets.Value("int32"),
49
+ "end_idx": datasets.Value("int32"),
50
+ "type": datasets.Value("string"),
51
+ }
52
+ ),
53
  }
54
  ),
55
  # No default supervised_keys (as we have to pass both question
 
83
  yield key, {
84
  "guid" : guid,
85
  "label" : label,
86
+ #"object_entity" : object_entity,
87
+ #"subject_entity" : subject_entity,
88
  "source" : source,
89
  "sentence" : sentence,
90
  }