hanlp词语相似度计算
# -*- encoding: utf-8 -*-
"""
@File : hanlp_Similiarity.py
@Contact : ag@team-ag.club
@License : (C)Copyright 2019-2020, CodingPark
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2022/2/4 1:15 下午 AG 1.0 情感词典-否定词归类
"""
import hanlp
hanlp.pretrained.sts.ALL # 语种见名称最后一个字段或相应语料库,加载后可删除
def simCal(vec):