JcJc人工智能错别字校对系统API - 网站错别字检查
中文校对软件 http://cuobiezi.net/zigen_jiaodui.html
Append: 最新版错别字检测 API 地址 https://github.com/textproofreading
网站单页面错别字检查接口说明
接口地址: http://api.CuoBieZi.net/spellcheck/url_check/json_phrase
接口参数:
字段一:”url”, 填写需要检查页面的地址 字段二:”mode”, 固定值,填写:”advanced” 预留参数,固定值 字段三:”biz_type”, 固定值,填写:”show” 预留参数,固定值
下面是一段python测试代码:
url = 'http://api.CuoBieZi.net/spellcheck/url_check/json_phrase'
url_content = "http://news.sina.com.cn/c/2017-11-23/doc-ifypapmz4019608.shtml"
payload = {
"url": url_content,
"mode": "advanced",
"biz_type": "show"
}
headers = {'content-type': 'application/json'}
print("====>cal==>",json.dumps(payload))
response = requests.post(url, data=json.dumps(payload), headers=headers)
returned_json_str=response.json()
print(response.json())
print( json.dumps(returned_json_str, indent=4, sort_keys=True, ensure_ascii=False) )
返回 json 格式的结果: {“Cases”:[{“Error”:”中国人民共和国”,”Tips”:”中华人民共和国”,”Sentence”:”中国人民共和国下半年上世纪将在微信账户钱包帐户的“九宫格”中开设快速的笑着保险入口,”,”ErrInfo”:”“,”Pos”:4}]}
json 结果说明: Error 是错误词 Tips 是正确词语 Sentence 是错误词与所在的句子 Pos 是错误词在文章中的位置
在线体验网站错别字检查: http://www.cuobiezi.net/public/static/pages/website_chinese_spellcheck.html
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有