Skip to content

Commit

Permalink
fixed reader only prediction (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelmfarias authored Oct 23, 2019
1 parent fc9f511 commit 376ae3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cdqa/reader/bertqa_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def write_predictions(
best_dict["qas_id"] = example.qas_id
best_dict["title"] = example.title
best_dict["paragraph"] = example.paragraph
best_dict["retriever_score"] = example.retriever_score.item()
best_dict["retriever_score"] = float(example.retriever_score)
best_dict["final_score"] = (1 - retriever_score_weight) * (
best_dict["start_logit"] + best_dict["end_logit"]
) + retriever_score_weight * best_dict["retriever_score"]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def read(file):

setup(
name="cdqa",
version="1.3.2",
version="1.3.3",
author="Félix MIKAELIAN, André FARIAS, Matyas AMROUCHE, Olivier SANS, Théo NAZON",
description="An End-To-End Closed Domain Question Answering System",
long_description=read("README.md"),
Expand Down

0 comments on commit 376ae3a

Please sign in to comment.