Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
495580da
Commit
495580da
authored
Dec 23, 2019
by
Aymeric Augustin
Browse files
Remove unused variables in templates.
parent
71f94a8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
templates/adding_a_new_example_script/utils_xxx.py
templates/adding_a_new_example_script/utils_xxx.py
+0
-2
No files found.
templates/adding_a_new_example_script/utils_xxx.py
View file @
495580da
...
...
@@ -868,8 +868,6 @@ def write_predictions_extended(
orig_data
=
json
.
load
(
reader
)[
"data"
]
qid_to_has_ans
=
make_qid_to_has_ans
(
orig_data
)
has_ans_qids
=
[
k
for
k
,
v
in
qid_to_has_ans
.
items
()
if
v
]
no_ans_qids
=
[
k
for
k
,
v
in
qid_to_has_ans
.
items
()
if
not
v
]
exact_raw
,
f1_raw
=
get_raw_scores
(
orig_data
,
all_predictions
)
out_eval
=
{}
...
...
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