百度云-语言与知识
连接器

百度云-语言与知识

连接器

需两次购买:①订购原厂商接口 ②订购易源会员包代理转发;提供全面、领先的NLP基础模块能力,涵盖词、短语、句子等不同粒度的底层能力,您可将其应用于多种技术和业务方向。

会员资源包统一计费,无需单独购买,开通会员包后可直接调用。
词法分析
接入点说明
基于大数据和用户行为的分词、词性标注、命名实体识别,定位基本语言元素,消除歧义,支撑自然语言的准确理解。原接口订购地址:https://cloud.baidu.com/product/nlp_basic
接口地址
https://connector.showapi.com/2561-6?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST
请求参数
Header 参数
参数名称类型示例值必须描述
content-typeString
application/x-www-form-urlencoded
Post 表单
参数名称类型示例值必须描述
ds_idString
-
数据源
textString
百度是一家高科技公司
暂无
charsetString
UTF-8
body整体文本内容可以支持GBK和UTF-8两种格式的编码。
返回参数
该接口返回经 showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见
返回体
cURL
curl -X POST "https://connector.showapi.com/2561-6?appKey=YOUR_APPKEY" \
  -H "content-type: application/x-www-form-urlencoded" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "ds_id=&text=%E7%99%BE%E5%BA%A6%E6%98%AF%E4%B8%80%E5%AE%B6%E9%AB%98%E7%A7%91%E6%8A%80%E5%85%AC%E5%8F%B8&charset=UTF-8"
返回示例
JSON
{"text":"百度是一家高科技公司",
      "items":[
         {
           "byte_length":4,
           "byte_offset":0,
           "formal":"",
           "item":"百度",
           "ne":"ORG",
           "pos":"",
           "uri":"",
           "loc_details":[ ],
           "basic_words":["百度"]
         },
         {
           "byte_length":2,
           "byte_offset":4,
           "formal":"",
           "item":"是",
           "ne":"",
           "pos":"v",
           "uri":"",
           "loc_details":[ ],
           "basic_words":["是"]
         },
         {
           "byte_length":4,
           "byte_offset":6,
           "formal":"",
           "item":"一家",
           "ne":"",
           "pos":"m",
           "uri":"",
           "loc_details":[ ],
           "basic_words":["一","家"]
         },
         {
           "byte_length":6,
           "byte_offset":10,
           "formal":"",
           "item":"高科技",
           "ne":"",
           "pos":"n",
           "uri":"",
           "loc_details":[ ],
           "basic_words":["高","科技"]
         },
         {
           "byte_length":4,
           "byte_offset":16,
           "formal":"",
           "item":"公司",
           "ne":"",
           "pos":"n",
           "uri":"",
           "loc_details":[ ],
           "basic_words":["公司"]
         }
      ]}
MCP 服务集成接口级

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

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

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