Spaces:
Runtime error
Runtime error
- ape/instance.py +1 -1
ape/instance.py
CHANGED
@@ -108,7 +108,7 @@ def load_entity(file='./ape/data/entity_train.json'):
|
|
108 |
for j in i['labels']:
|
109 |
##拆分成单实体任务类型
|
110 |
if j[1] =='DRUG_EFFICACY':
|
111 |
-
output.append(
|
112 |
output = json.dumps(output, ensure_ascii=False)
|
113 |
data.append((input, output))
|
114 |
return data
|
|
|
108 |
for j in i['labels']:
|
109 |
##拆分成单实体任务类型
|
110 |
if j[1] =='DRUG_EFFICACY':
|
111 |
+
output.append(j[-1])
|
112 |
output = json.dumps(output, ensure_ascii=False)
|
113 |
data.append((input, output))
|
114 |
return data
|