文本处理

文本处理

免费服务

文本处理API是一款功能强大的文本分析服务,提供文本分词、关键信息抽取、分类、词性语法分析等功能。该API具有高效、准确、灵活和易用的特点,兼容多种编程语言和平台,适合各种用户在多种场景下使用。

免费接口,注册即用,无需单独购买。
依存句法分析
接入点说明
依存句法分析,是指识别语句中词与词之间的依存关系,并揭示其句法结构,包括主谓关系、动宾关系、核心关系等。用依存语言学来理解语义,精准掌握用户意图
接口地址
https://route.showapi.com/2663-8?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST/GET
请求参数
Header 参数
Post 表单
返回参数
该接口返回经 showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见
返回体
cURL
curl -X POST "https://route.showapi.com/2663-8?appKey=YOUR_APPKEY" \
  -H "content-type: application/x-www-form-urlencoded" \
  -d "text=Java%E6%98%AF%E4%B8%80%E9%97%A8%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A1%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80%EF%BC%8C%E4%B8%8D%E4%BB%85%E5%90%B8%E6%94%B6%E4%BA%86C%2B%2B%E8%AF%AD%E8%A8%80%E7%9A%84%E5%90%84%E7%A7%8D%E4%BC%98%E7%82%B9%EF%BC%8C%E8%BF%98%E6%91%92%E5%BC%83%E4%BA%86C%2B%2B%E9%87%8C%E9%9A%BE%E4%BB%A5%E7%90%86%E8%A7%A3%E7%9A%84%E5%A4%9A%E7%BB%A7%E6%89%BF%E3%80%81%E6%8C%87%E9%92%88%E7%AD%89%E6%A6%82%E5%BF%B5%EF%BC%8C%E5%9B%A0%E6%AD%A4Java%E8%AF%AD%E8%A8%80%E5%85%B7%E6%9C%89%E5%8A%9F%E8%83%BD%E5%BC%BA%E5%A4%A7%E5%92%8C%E7%AE%80%E5%8D%95%E6%98%93%E7%94%A8%E4%B8%A4%E4%B8%AA%E7%89%B9%E5%BE%81%E3%80%82"
返回示例
JSON
{
  "showapi_res_error": "",
  "showapi_res_code": 0,
  "showapi_res_id": "60ebe50a0de3761b665b15c8",
  "showapi_res_body": {
    "ret_code": 0,
    "remark": "成功",
    "sentences": [
      {
        "id": "1",
        "lemma": "Java",
        "cpos": "ws",
        "hear_word_id": "2",
        "deprel": "主谓关系",
        "pos": "nx"
      },
      {
        "id": "2",
        "lemma": "是",
        "cpos": "v",
        "hear_word_id": "0",
        "deprel": "核心关系",
        "pos": "v"
      },
      {
        "id": "3",
        "lemma": "一",
        "cpos": "m",
        "hear_word_id": "4",
        "deprel": "定中关系",
        "pos": "m"
      },
      {
        "id": "4",
        "lemma": "门",
        "cpos": "q",
        "hear_word_id": "6",
        "deprel": "定中关系",
        "pos": "q"
      },
      {
        "id": "5",
        "lemma": "面向对象编程",
        "cpos": "nz",
        "hear_word_id": "6",
        "deprel": "定中关系",
        "pos": "gi"
      },
      {
        "id": "6",
        "lemma": "语言",
        "cpos": "n",
        "hear_word_id": "2",
        "deprel": "动宾关系",
        "pos": "n"
      },
      {
        "id": "7",
        "lemma": ",",
        "cpos": "wp",
        "hear_word_id": "2",
        "deprel": "标点符号",
        "pos": "w"
      },
      {
        "id": "8",
        "lemma": "不仅",
        "cpos": "c",
        "hear_word_id": "9",
        "deprel": "状中结构",
        "pos": "c"
      },
      {
        "id": "9",
        "lemma": "吸收",
        "cpos": "v",
        "hear_word_id": "2",
        "deprel": "并列关系",
        "pos": "v"
      },
      {
        "id": "10",
        "lemma": "了",
        "cpos": "u",
        "hear_word_id": "9",
        "deprel": "右附加关系",
        "pos": "u"
      },
      {
        "id": "11",
        "lemma": "C++",
        "cpos": "ws",
        "hear_word_id": "12",
        "deprel": "定中关系",
        "pos": "nx"
      },
      {
        "id": "12",
        "lemma": "语言",
        "cpos": "n",
        "hear_word_id": "16",
        "deprel": "定中关系",
        "pos": "n"
      },
      {
        "id": "13",
        "lemma": "的",
        "cpos": "u",
        "hear_word_id": "12",
        "deprel": "右附加关系",
        "pos": "u"
      },
      {
        "id": "14",
        "lemma": "各",
        "cpos": "r",
        "hear_word_id": "15",
        "deprel": "定中关系",
        "pos": "r"
      },
      {
        "id": "15",
        "lemma": "种",
        "cpos": "q",
        "hear_word_id": "16",
        "deprel": "定中关系",
        "pos": "q"
      },
      {
        "id": "16",
        "lemma": "优点",
        "cpos": "n",
        "hear_word_id": "9",
        "deprel": "动宾关系",
        "pos": "n"
      },
      {
        "id": "17",
        "lemma": ",",
        "cpos": "wp",
        "hear_word_id": "9",
        "deprel": "标点符号",
        "pos": "w"
      },
      {
        "id": "18",
        "lemma": "还",
        "cpos": "d",
        "hear_word_id": "19",
        "deprel": "状中结构",
        "pos": "d"
      },
      {
        "id": "19",
        "lemma": "摒弃",
        "cpos": "v",
        "hear_word_id": "9",
        "deprel": "并列关系",
        "pos": "v"
      },
      {
        "id": "20",
        "lemma": "了",
        "cpos": "u",
        "hear_word_id": "19",
        "deprel": "右附加关系",
        "pos": "u"
      },
      {
        "id": "21",
        "lemma": "C++",
        "cpos": "n",
        "hear_word_id": "22",
        "deprel": "定中关系",
        "pos": "n"
      },
      {
        "id": "22",
        "lemma": "里",
        "cpos": "nd",
        "hear_word_id": "24",
        "deprel": "状中结构",
        "pos": "f"
      },
      {
        "id": "23",
        "lemma": "难以",
        "cpos": "d",
        "hear_word_id": "24",
        "deprel": "状中结构",
        "pos": "d"
      },
      {
        "id": "24",
        "lemma": "理解",
        "cpos": "v",
        "hear_word_id": "31",
        "deprel": "定中关系",
        "pos": "v"
      },
      {
        "id": "25",
        "lemma": "的",
        "cpos": "u",
        "hear_word_id": "24",
        "deprel": "右附加关系",
        "pos": "u"
      },
      {
        "id": "26",
        "lemma": "多",
        "cpos": "a",
        "hear_word_id": "27",
        "deprel": "状中结构",
        "pos": "a"
      },
      {
        "id": "27",
        "lemma": "继承",
        "cpos": "v",
        "hear_word_id": "31",
        "deprel": "定中关系",
        "pos": "v"
      },
      {
        "id": "28",
        "lemma": "、",
        "cpos": "wp",
        "hear_word_id": "29",
        "deprel": "标点符号",
        "pos": "w"
      },
      {
        "id": "29",
        "lemma": "指针",
        "cpos": "n",
        "hear_word_id": "27",
        "deprel": "并列关系",
        "pos": "n"
      },
      {
        "id": "30",
        "lemma": "等",
        "cpos": "u",
        "hear_word_id": "27",
        "deprel": "右附加关系",
        "pos": "u"
      },
      {
        "id": "31",
        "lemma": "概念",
        "cpos": "n",
        "hear_word_id": "19",
        "deprel": "动宾关系",
        "pos": "n"
      },
      {
        "id": "32",
        "lemma": ",",
        "cpos": "wp",
        "hear_word_id": "19",
        "deprel": "标点符号",
        "pos": "w"
      },
      {
        "id": "33",
        "lemma": "因此",
        "cpos": "c",
        "hear_word_id": "36",
        "deprel": "状中结构",
        "pos": "c"
      },
      {
        "id": "34",
        "lemma": "Java",
        "cpos": "ws",
        "hear_word_id": "35",
        "deprel": "定中关系",
        "pos": "nx"
      },
      {
        "id": "35",
        "lemma": "语言",
        "cpos": "n",
        "hear_word_id": "36",
        "deprel": "主谓关系",
        "pos": "n"
      },
      {
        "id": "36",
        "lemma": "具有",
        "cpos": "v",
        "hear_word_id": "9",
        "deprel": "并列关系",
        "pos": "v"
      },
      {
        "id": "37",
        "lemma": "功能强大",
        "cpos": "i",
        "hear_word_id": "43",
        "deprel": "定中关系",
        "pos": "i"
      },
      {
        "id": "38",
        "lemma": "和",
        "cpos": "c",
        "hear_word_id": "40",
        "deprel": "左附加关系",
        "pos": "c"
      },
      {
        "id": "39",
        "lemma": "简单",
        "cpos": "a",
        "hear_word_id": "40",
        "deprel": "定中关系",
        "pos": "a"
      },
      {
        "id": "40",
        "lemma": "易用",
        "cpos": "v",
        "hear_word_id": "37",
        "deprel": "并列关系",
        "pos": "v"
      },
      {
        "id": "41",
        "lemma": "两",
        "cpos": "m",
        "hear_word_id": "42",
        "deprel": "定中关系",
        "pos": "m"
      },
      {
        "id": "42",
        "lemma": "个",
        "cpos": "q",
        "hear_word_id": "43",
        "deprel": "定中关系",
        "pos": "q"
      },
      {
        "id": "43",
        "lemma": "特征",
        "cpos": "n",
        "hear_word_id": "36",
        "deprel": "动宾关系",
        "pos": "n"
      },
      {
        "id": "44",
        "lemma": "。",
        "cpos": "wp",
        "hear_word_id": "2",
        "deprel": "标点符号",
        "pos": "w"
      }
    ]
  }
}
MCP 服务集成接口级

在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。

MCP JSON
{
  "mcpServers": {
    "showapi-mcp-2663": {
      "url": "http://www.showapi.com.cn/mcp/2663/{your_appKey}"
    }
  }
}
OpenAPI 文档接口级

标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。