相似文本检测

检测两端短文本相似度,返回相似得分结果。
10000次
100000次

相似文本检测

检测两端短文本相似度,返回相似得分结果。

检测两端短文本相似度,返回相似得分结果。

调用地址: https://api.topthink.com/word/simnet

请求方式:POST

返回类型:JSON

API 调用: 调用说明

名称 必填 类型 说明
text1 string 文本内容1,最大250字符数
text2 string 文本内容2,最大250字符数

$client = new Client("访问令牌")

$result = $client->wordSimnet()
    ->withText1("text1")
    ->withText2("text2")
    ->request();

名称 类型 说明
score string 相似结果得分,最高1

{
    "code":0,
    "message": "成功",
    "data": {
         "score":0.823376
    }
}