yesapi免费中文自动分词API接口分享
菜鸡源码一直用的pullword免费自动分词API,这段时间发现pullword用不了了,访问接口一直超时,所以不得更换一个自动分词API接口。
网上找了很久,免费的自动分词API接口很少,基本都要收费,找到的这款每月最高免费10万次,个人基本够用了。
申请地址:http://api.yesapi.cn/docs-api-App.Scws.GetWords.html
请求示例:
http://api.yesapi.cn/?service=App.Scws.GetWords&text=%E5%93%AA%E4%BA%9B%E4%BA%8B%E6%98%AF%E4%BD%A0%E5%BD%93%E4%BA%86%E9%A2%86%E5%AF%BC%E6%89%8D%E6%98%8E%E7%99%BD%E7%9A%84%EF%BC%9F&app_key=CEE4B8A091578B252AC4C92FB4E893C3&sign=CB7602F3AC922808AF5D475D8DA33302
返回:
{"ret":200,"data":{"err_code":0,"err_msg":"","words":[{"word":"我爱你","off":0,"len":9,"idf":4.929999828338623,"attr":"n"},{"word":"中国","off":9,"len":6,"idf":6.260000228881836,"attr":"ns"}]},"msg":"当前小白接口:App.Scws.GetWords"}相关专题