自然语言处理 NLP-事件抽取:响应示例

时间:2024-01-17 15:35:04

响应示例

  • 成功响应示例
    {
    "events": [
              {
                 "argument": [
                         {
                          "role": "ORG",
                          "span": [0,11],
                          "word": "中国XXX股份有限公司"
                          },
                         {
                          "role": "Person",
                          "span": [40,43],
                          "word": "黄XX"
                          },
                         {
                          "role": "Job",
                          "span": [44,51],
                          "word": "审计委员会委员"
                          },
                         {
                         "role": "Time-Period",
                         "span": [57,69],
                         "word": "任期与本届董事会任期一致"
                          }
                   ],
                  "event_trigger": "选举",
                  "event_type": "聘任",
                  "trigger_span": [36,38]
            }
        ]
    }
  • 失败响应示例
    {
       "error_code": "NLP.0301",
       "error_msg": "text should be between 1 to 256."
    }
support.huaweicloud.com/api-nlp/nlp_03_0086.html