Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/RTXteam/RTX
Browse files Browse the repository at this point in the history
  • Loading branch information
edeutsch committed Aug 9, 2023
2 parents 2db4b8c + 61f92fc commit 4b18f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/reasoningtool/kg-construction/QueryNCBIeUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def normalized_google_distance(mesh1_str, mesh2_str, mesh1=True, mesh2=True):
mesh2=mesh2_str_decorated))
ni = QueryNCBIeUtils.get_pubmed_hits_count('{mesh1}'.format(mesh1=mesh1_str_decorated))
nj = QueryNCBIeUtils.get_pubmed_hits_count('{mesh2}'.format(mesh2=mesh2_str_decorated))
N = 2.7e+7 * 20 # from PubMed home page there are 27 million articles; avg 20 MeSH terms per article
N = 3.5e+7 * 20 # From PubMed home page there are 35 million articles (based on the information on https://pubmed.ncbi.nlm.nih.gov/ on 08/09/2023); avg 20 MeSH terms per article
if ni is None or nj is None or nij is None:
return math.nan
if ni == 0 or nj == 0 or nij == 0:
Expand Down

0 comments on commit 4b18f41

Please sign in to comment.