Skip to content

Commit

Permalink
Merge pull request #15 from TranslatorSRI/more_novelty
Browse files Browse the repository at this point in the history
More novelty
  • Loading branch information
maximusunc authored Aug 18, 2023
2 parents 8b775f6 + 8916d2b commit fc8f4f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
12 changes: 5 additions & 7 deletions app/ordering_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@ async def get_ordering_components(message, logger):
"clinical_evidence": clinical_evidence_score,
"novelty": 0.0,
}
if clinical_evidence_score == 0:
# Only compute novelty if there is no clinical evidence
for node_bindings in result.get("node_bindings", {}).values():
for node_binding in node_bindings:
result["ordering_components"]["novelty"] = novelty_scores.get(
node_binding["id"], 0.0
)
for node_bindings in result.get("node_bindings", {}).values():
for node_binding in node_bindings:
result["ordering_components"]["novelty"] = novelty_scores.get(
node_binding["id"], 0.0
)
8 changes: 4 additions & 4 deletions app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@

openapi_args = dict(
title="Answer Appraiser",
version="0.3.3",
version="0.3.4",
terms_of_service="",
translator_component="Utility",
translator_teams=["Standards Reference Implementation Team"],
infores="infores:answer-appraiser",
contact={
"name": "Abrar Mesbah",
"email": "amesbah@covar.com",
"x-id": "uhbrar",
"name": "Max Wang",
"email": "max@covar.com",
"x-id": "maximusunc",
"x-role": "responsible developer",
},
)
Expand Down

0 comments on commit fc8f4f7

Please sign in to comment.