Skip to content

Commit

Permalink
Merge pull request #42 from GeneDx/genSimFix
Browse files Browse the repository at this point in the history
fix #41
  • Loading branch information
mcgeestephen authored Dec 29, 2020
2 parents 21903a7 + bc69171 commit 5280101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion txt2hpo/nlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def similarity_term_to_context(term, context, model):
:return: float
"""
def remove_out_of_vocab(tokens):
return [x for x in tokens if x in model.vocab]
return [x for x in tokens if x in model.key_to_index]

hpo_term = hpo_network.nodes[term]
hpo_term_definition = hpo_term['name']
Expand Down

0 comments on commit 5280101

Please sign in to comment.