Skip to content

Commit

Permalink
fix #74 #36 #33
Browse files Browse the repository at this point in the history
  • Loading branch information
fmikaelian committed Mar 11, 2019
1 parent a35931c commit 826c58b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cdqa/reader/bertqa_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ def write_predictions(all_examples, all_features, all_results, n_best_size,

if not version_2_with_negative:
all_predictions[example.qas_id] = nbest_json[0]["text"]
all_nbest_json[example.qas_id] = nbest_json
else:
# predict "" iff the null score - the score of best non-null > threshold
score_diff = score_null - best_non_null_entry.start_logit - (
Expand Down

0 comments on commit 826c58b

Please sign in to comment.