Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
Rnet_WebService
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hxw
Rnet_WebService
Commits
6f14265a
Commit
6f14265a
authored
Apr 13, 2018
by
hxw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改答案为空
parent
2f0f71cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ChangeNoAnswer.py
ChangeNoAnswer.py
+3
-1
No files found.
ChangeNoAnswer.py
View file @
6f14265a
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment