From abb68b5994e73a219e999cb4544003ff5cd358d9 Mon Sep 17 00:00:00 2001 From: adam-sutton-1992 Date: Thu, 23 Nov 2023 22:35:09 +0000 Subject: [PATCH] removed print statements --- medcat/cdb.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/medcat/cdb.py b/medcat/cdb.py index 368d7bc0e..47a9d8e02 100644 --- a/medcat/cdb.py +++ b/medcat/cdb.py @@ -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]: