From ee184052ce4f2694038630b6f62c49eb23da571b Mon Sep 17 00:00:00 2001 From: zhaojinghao Date: Thu, 8 Dec 2022 15:53:11 +0800 Subject: [PATCH] add log --- nlp/hanlp_tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nlp/hanlp_tools.py b/nlp/hanlp_tools.py index 6cea0cc..e38b65b 100644 --- a/nlp/hanlp_tools.py +++ b/nlp/hanlp_tools.py @@ -21,6 +21,7 @@ def text_analysis(text): def text_simi(src, tgt): score = sts([(src, tgt)])[0] + logger.info(f"相似度得分:{score}") result = ["negative", "positive"][round(score)] return result