9

JcJc人工智能错别字校对系统API(网站错别字检查)

 3 years ago
source link: https://tianchunfeng.blog.csdn.net/article/details/78614720
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

JcJc人工智能错别字校对系统API(网站错别字检查)

置顶 田春峰 2017-11-23 14:46:15 8573

JcJc人工智能错别字校对系统API - 网站错别字检查

2020-07-26更新:https://blog.csdn.net/proofreading/article/details/51637364

JCJC错别字识别软件

中文校对软件 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


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK