多重声明检测与验证
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/custom/api/v2/detect/verify/claims
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/custom/api/v2/detect/verify/claims' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"blog": "<Blog you want to detect claims from>",
"url": "<URL you want to detect claims from>",
"blog_headline_topic: "<headline of Blog, or Blog Topic, the more accurate the topic, the better the algorithm in fact checking>"
}'
响应示例响应示例
{
"status": "Success",
"fact_check_results": [
{
"claim": "The motivations behind people's choice to shop online are diverse, ranging from the convenience it offers to the competitive prices available.",
"reasoning": "The evidence provided does not contain any readable or understandable text that can be used to verify the statement. The text in the evidence appears to be corrupted or encoded, making it impossible to extract any information from it.",
"factuality": "Need more information",
"relevant_links": [
{
"fact": "<Fact cited in fact check>",
"link": "<url to source of fact>",
"score": 0.1234
},
{
"fact": "<Fact cited in fact check>",
"link": "<url to source of fact>",
"score": 0.1234
}
],
"error": "The evidence provided is unreadable and cannot be used to verify the statement.",
"correction": "No correction can be provided as the evidence is unreadable."
}
]
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Authorization
string
必需
示例值:
Bearer <token>
Body 参数application/json