效果不如有监督的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)

  

from aip import AipContentCensor


APP_ID = "22216281"
APT_KEY = "BUz7W6CluHfa3fW3KGGLpEzU"
SECRET_KEY = "kUnu5ZBaBOUww6UePENO1Rg8FqbYpHSu"

client = AipContentCensor(APP_ID,APT_KEY,SECRET_KEY)

# result = client.simnet("这件衣服颜色怎么样?","这件衣服价格怎么样")

result = client.textCensorUserDefined("***")

print(result)

  

相关文章:

  • 2022-02-11
  • 2021-04-27
  • 2021-08-17
  • 2021-04-06
  • 2021-06-29
  • 2022-01-21
  • 2021-05-07
猜你喜欢
  • 2021-12-21
  • 2021-11-16
  • 2021-11-04
  • 2021-10-22
相关资源
相似解决方案