Skip to content

Commit

Permalink
Make similarity cutoff stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
memgonzales authored Sep 5, 2023
1 parent 5f80d28 commit be73b66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions callbacks/text_mining/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@


COLNAMES = ['Gene', 'PMID', 'Title', 'Sentence', 'Score']
SIMILARITY_CUTOFF = 75
MAX_NUM_RESULTS = 100
SIMILARITY_CUTOFF = 85


def sanitize_text(text):
Expand Down Expand Up @@ -177,8 +176,6 @@ def text_mining_query_search(query_string):
df.loc[len(df.index)] = [Entity, PMID,
Title, Sentence, similarity.score]

if df.shape[0] == MAX_NUM_RESULTS:
break
except:
pass

Expand Down

0 comments on commit be73b66

Please sign in to comment.