Commit 6f14265a by hxw

修改答案为空

parent 2f0f71cf
...@@ -57,7 +57,8 @@ def answers4train(context,answers): ...@@ -57,7 +57,8 @@ def answers4train(context,answers):
answer["answer_start"] = context.find('#') answer["answer_start"] = context.find('#')
answers.append(answer) answers.append(answer)
else: else:
answers[0]["answer_start"] += len('# ') for i in range(len(answers)):
answers[i]["answer_start"] += len('# ')
return answers return answers
...@@ -74,6 +75,7 @@ def answers4test(context,answers): ...@@ -74,6 +75,7 @@ def answers4test(context,answers):
JsonConvert('d0/train-v1.1.json','d0/a-train-v1.1.json') JsonConvert('d0/train-v1.1.json','d0/a-train-v1.1.json')
JsonConvert('d0/dev-v1.1.json','d0/a-dev-v1.1.json') JsonConvert('d0/dev-v1.1.json','d0/a-dev-v1.1.json')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment