## 相似文本检测 ![](https://img.kancloud.cn/24/d1/24d10add6d45e41a187e05f43cf46500_200x200.png) > 检测两端短文本相似度,返回相似得分结果。 ## 接口费用( [点击购买](https://market.topthink.com/product/405)) > 最低 0.002元/次 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/word/simnet ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | appCode| string| 是|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | text1 | string | 是 | 文本内容1,最大250字符数 | | text2 | string | 是 | 文本内容2,最大250字符数 | ### 返回`data`参数 | 名称 | 类型 | 示例值 | 说明 | | --- | --- | --- | --- | | score | float | 1 | 相似结果得分,最高1 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->wordSimnet() ->withText1('ThinkAPI统一接口服务') ->withText2("thinkapi统一接口调用服务") ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": { "score":0.823376 } } ~~~