POSTPublictext-similar
文本相似度检测
该API用于高效准确地检测两段文本之间的相似度,支持多种语言,广泛应用于内容审核和推荐系统。
Endpoint
https://openapi.toolkk.com/text/similar
Rate limit
60 req/min
Timeout
5000 ms
该API用于高效准确地检测两段文本之间的相似度,支持多种语言,广泛应用于内容审核和推荐系统。
Endpoint
https://openapi.toolkk.com/text/similar
Rate limit
60 req/min
Timeout
5000 ms
All endpoints are intended to be parsed with the standard code, message, and data structure.
{ code, message, data }
curl --request POST \
--url 'https://openapi.toolkk.com/text/similar' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{}'{}{
"code": 200,
"data": {
"like": {
"type": "number",
"example": 0.8164965809277261,
"description": "两个文本相似的程度,为0至1之间的小数。越接近1说明越像。"
},
"orderNo": {
"type": "string",
"example": "f45dj6jdknqfkszc8k"
},
"ret_code": {
"type": "string",
"example": "0",
"description": "0成功其它失败"
}
},
"message": "success"
}The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| code | number | 200 |
| data | object | {...} |
| data.like | object | {...} |
| data.like.type | string | number |
| data.like.example | number | 0.8164965809277261 |
| data.like.description | string | 两个文本相似的程度,为0至1之间的小数。越接近1说明越像。 |
| data.orderNo | object | {...} |
| data.orderNo.type | string | string |
| data.orderNo.example | string | f45dj6jdknqfkszc8k |
| data.ret_code | object | {...} |
| data.ret_code.type | string | string |
| data.ret_code.example | string | 0 |
| data.ret_code.description | string | 0成功其它失败 |
| message | string | success |