自然语言处理 NLP-依存句法分析:响应示例

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

响应示例

  • 成功响应示例
    {
        "words": [
            {
                "id": 1,
                "word": "张三",
                "pos": "NR",
                "head_word_id": 2,
                "dependency_label": "subj"
            },
            {
                "id": 2,
                "word": "买",
                "pos": "VV",
                "head_word_id": 0,
                "dependency_label": "root"
            },
            {
                "id": 3,
                "word": "电脑",
                "pos": "NN",
                "head_word_id": 2,
                "dependency_label": "obj"
            }
        ]
    }
  • 失败响应示例
    {
        "error_code": "NLP.0301",
        "error_message": "Missing parameters:text"
    }
support.huaweicloud.com/api-nlp/nlp_03_0059.html