效果不如有监督的bert文本相似度好
from aip import AipNlp
APP_ID = "22216281"
APT_KEY = "foEeYauuvnqWGv4hp5T2ZZyD"
SECRET_KEY = "67vK4QymaLTou7LMSDYyqS0ralhAi3u2"
client = AipNlp(APP_ID,APT_KEY,SECRET_KEY)
result = client.simnet("这件衣服颜色怎么样?","这件衣服价格怎么样")
print(result)
更多文章请关注《万象专栏》
转载请注明出处:https://www.wanxiangsucai.com/read/cv11591