Skip to content

Commit

Permalink
removed print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-sutton-1992 committed Nov 23, 2023
1 parent f299677 commit abb68b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions medcat/cdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,9 +867,7 @@ def merge_cdb(cdb1: "CDB", cdb2: "CDB", overwrite: int = 0, vector_import: dict[
# this is where cui2info would be
if cui in cdb1.cui2context_vectors:
contexts = set(list(cdb1.cui2context_vectors[cui]) + list(cdb2.cui2context_vectors[cui].keys())) # xlong, long, medium, short
norm = np.sum([cdb1.cui2count_train[cui], cdb2.cui2count_train[cui]])
print(cdb1.cui2count_train[cui])
print(norm)
norm = np.sum([cdb1.cui2count_train[cui], cdb2.cui2count_train[cui]])
weights = [np.divide(cdb1.cui2count_train[cui], norm), np.divide(cdb2.cui2count_train[cui], norm)]
for s in contexts:
if s in cdb1.cui2context_vectors[cui] and s in cdb2.cui2context_vectors[cui]:
Expand Down

0 comments on commit abb68b5

Please sign in to comment.