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