知识图谱 KG-实体链接:响应示例

时间:2024-04-25 10:35:11

响应示例

状态码: 200

OK

{
  "entities" : [ {
    "mention" : "李娜",
    "offset" : 0,
    "entity_id" : "6939670486880563336",
    "entity_title" : "李娜(流行歌手、佛门女弟子)"
  }, {
    "mention" : "青藏高原",
    "offset" : 4,
    "entity_id" : "8654144631589645401",
    "entity_title" : "青藏高原(李娜演唱歌曲)"
  } ]
}

状态码: 400

Bad Request

{
  "error_code" : "KGP.2007",
  "error_msg" : "kg not found"
}

状态码: 403

Forbidden

{
  "error_code" : "KGP.0004",
  "error_msg" : "Auth failed"
}
support.huaweicloud.com/api-kg/kg_03_0030.html