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
b03872aa
Commit
b03872aa
authored
Dec 21, 2019
by
thomwolf
Browse files
fix merge
parent
518ba748
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/run_squad.py
examples/run_squad.py
+1
-1
No files found.
examples/run_squad.py
View file @
b03872aa
...
@@ -388,7 +388,7 @@ def evaluate(args, model, tokenizer, prefix=""):
...
@@ -388,7 +388,7 @@ def evaluate(args, model, tokenizer, prefix=""):
predictions
=
compute_predictions_logits
(
examples
,
features
,
all_results
,
args
.
n_best_size
,
predictions
=
compute_predictions_logits
(
examples
,
features
,
all_results
,
args
.
n_best_size
,
args
.
max_answer_length
,
args
.
do_lower_case
,
output_prediction_file
,
args
.
max_answer_length
,
args
.
do_lower_case
,
output_prediction_file
,
output_nbest_file
,
output_null_log_odds_file
,
args
.
verbose_logging
,
output_nbest_file
,
output_null_log_odds_file
,
args
.
verbose_logging
,
args
.
version_2_with_negative
,
args
.
null_score_diff_threshold
)
args
.
version_2_with_negative
,
args
.
null_score_diff_threshold
,
tokenizer
)
# Compute the F1 and exact scores.
# Compute the F1 and exact scores.
results
=
squad_evaluate
(
examples
,
predictions
)
results
=
squad_evaluate
(
examples
,
predictions
)
...
...
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