数据智能     正常 无需实名认证 按量计费

智能分词

NLP智能分词,快速把一段文本切分为一个个词组,并标注了词性。


更新日期
2025-09-21 14:03:36
请求方式
GET
返回格式
json
调用权限
无需实名认证
参考价格
0.00000元/次

  • 计费说明
  • API文档
  • 错误码参照
  • 示例代码
  • 在线调试
按量计费:

每次请求API接口:0.00000 元

接口地址:https://api.xiaotuo.net/api.php?act=Api_send&id=112


返回格式:json


请求方式:GET


请求示例:https://api.xiaotuo.net/api.php?act=Api_send&id=112&apikey=你开通的apikey&text=要分词的内容&type=分词方式,默认nlp,支持nlp,crf,nostopword,index,short,nshort,speed,standard


请求参数说明:
名称 必填 类型 说明
apikey string 你开通的apikey
text string 要分词的内容
type string 分词方式,默认nlp,支持nlp,crf,nostopword,index,short,nshort,speed,standard
返回参数说明:
名称 类型 说明
text string 分词
nature string 词性
返回示例:
{
  "request_id": "828268380683509760",
  "success": true,
  "message": "success",
  "code": 200,
  "data": [
    {
      "text": "第三",
      "nature": "m"
    },
    {
      "text": "方",
      "nature": "q"
    },
    {
      "text": "噶",
      "nature": "v"
    },
    {
      "text": "等",
      "nature": "u"
    },
    {
      "text": "哈",
      "nature": "j"
    },
    {
      "text": "时空",
      "nature": "n"
    },
    {
      "text": "裂痕",
      "nature": "n"
    },
    {
      "text": "打卡机",
      "nature": "n"
    },
    {
      "text": "撒刚",
      "nature": "d"
    },
    {
      "text": "发",
      "nature": "v"
    },
    {
      "text": "刷卡机",
      "nature": "n"
    }
  ],
  "time": 1758434570,
  "usage": 0
}
错误码 说明
100 您的apikey值为空!
101 您的apikey值不存在!
102 当前来源地址不在白名单内!
103 当前接口为实名认证后可用,请您先进行实名!
104 当前接口为企业认证后可用,请您先进行企业认证!
105 当前接口未通过审核或已停止运营!
106 您的余额不足,请及时充值!
107 您当前的接口免费期限已过期,请及时续费!
108 您的点数包已用完,请及时充值!
109 您的账号已被封禁,不可使用任何接口!
  • PHP
  • javaScript
  • java
  • go
  • Python
  • Nodejs
  • C
  • C++
  • C#

在线调试

温馨提示:请修改请求参数,未修改可能返回报错;

参数名称 参数值(修改后测试)

返回结果