自然语言处理 NLP-属性级情感分析(领域版):响应示例

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

响应示例

  • 成功响应示例
    {
        "aspect_opinions": [
            {
                "aspect_category": "系统性能",
                "aspect_term": "运行",
                "confidence": 1.0,
                "label": 1,
                "opinion_term": "很快",
                "span": [
                    0,
                    1,
                    2,
                    3
                ],
                "tag": "系统强大"
            },
            {
                "aspect_category": "电池",
                "aspect_term": "快充",
                "confidence": 1.0,
                "label": 1,
                "opinion_term": "不错",
                "span": [
                    5,
                    6,
                    8,
                    9
                ],
                "tag": "充电快"
            }
        ],
        "confidence": 0.955,
        "label": 1,
        "text": "运行很快,快充也不错。"
    }   
  • 失败响应示例
    {
        "error_code": "NLP.0301",
        "error_msg": "type must be 1 now"
    }
support.huaweicloud.com/api-nlp/nlp_03_0090.html