主题提取
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/text/topic_extraction
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/text/topic_extraction' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
"response_as_dict": true,
"attributes_as_list": false,
"show_original_response": false
}'
响应示例响应示例
200 - 成功示例
{
"tenstorrent": {
"items": [
{
"category": "Film Tv & Video",
"importance": 0.99
},
{
"category": "Celebrity & Pop Culture",
"importance": 0.79
}
]
},
"google": {
"items": [
{
"category": "/Arts & Entertainment/Tv & Video/Tv Shows & Programs",
"importance": 0.52
}
]
},
"ibm": {
"items": [
{
"category": "/Art And Entertainment/Movies And Tv",
"importance": 1
},
{
"category": "/Art And Entertainment/Movies And Tv/Movies",
"importance": 1
},
{
"category": "/Art And Entertainment/Movies And Tv/Television",
"importance": 1
}
]
},
"openai": {
"items": [
{
"category": "Entertainment",
"importance": 0.9
},
{
"category": "Film Industry",
"importance": 0.8
},
{
"category": "Television",
"importance": 0.7
}
]
},
"eden-ai": {
"status": "success",
"items": [
{
"category": "/Art And Entertainment/Movies And Tv/Television",
"importance": 1
},
{
"category": "/Art And Entertainment/Movies And Tv/Movies",
"importance": 1
},
{
"category": "Celebrity & Pop Culture",
"importance": 0.79
},
{
"category": "Film Tv & Video",
"importance": 0.99
},
{
"category": "Film Industry",
"importance": 0.8
}
]
}
}
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
默认值:
Bearer <your_key>
Body 参数application/json
返回响应
修改于 2024-04-11 06:56:10