JcJc人工智能错别字校对系统技术接口文档

所需积分/C币:46 2017-12-12 13:31:07 297KB PDF
89
收藏 收藏
举报

文稿校对是一件繁琐、复杂、工作量大、容易出现失误的工作。JcJc人工智 能错别字校对系统就是为了帮助广大文字工作者解决这类问题的一个软件产 品。基于语义分析的中文文本错误的自动侦测与纠错结合大数据的汉语校检 ,我们刻苦研发,目前校对水平正在日益满足各行业文字校对工作的广泛需 求。
htto/www.Cuobiezinetjcjc人工智能错别宇校对系统AP|文档 C#代码地址 https:/github.com/textproofreading/jcjccuobiezijavaclient Java代码地址 https:/github.com/textproofreading/jcuccuobiezicsharpclient Python代码地址 https://qithub.com/textproofreading/cuobiezihttpapi C#具体代码地址及说明 https:/github.com/textproofreading/jcuccuobiezicSharpclient/blob/Master /JcJcCuoBieZiDotNetDemo/JcJcCuoBieZiDotNetDemo/Form 1. cs string strURL http117.121.10.43:8234/spellcheck/jsoncheck/jsonphrase ∥)创建一个HTTP请求 Httpwebrequest request (htTp web Request)webrequest. Create(strurl); POSt请求方式 request Method= POST ∥内容类型 request ContentType =applicationx-WWW-form-urlencoded /设置参数,并进行URL编码 string jsonParas=f"content":\+ textBox1Text+ 1","model advanced","biz type".Ishow"] htp/www.Cuobiezinetjcc人工智能错别字校对系统AP|文档 htto/www.Cuobiezinetjcjc人工智能错别宇校对系统AP|文档 string paraUrICoded jsonparas; //sysTem. web. Httputility. Urlencode(sonparas) bytel payload ∥|Json字符串转化为字节 payload= System. Text Encoding UTF8 GetBytes(paraUrlCoded ∥设置请求的 ContentLength request Contentlength= payload Length ∥发送请求,获得请求流 Stream writer tr writer= request GetRequestStream();/获取用于写入请求数据的 Stream对象 catch(Exception) writer= null Console Write("连接服务器失败!"); ∥|请求参数写入流 writer. Write(payload, 0, payload Length) writer.C|ose(O;/关闭请求流 String strIa|ue=";/ strvalue为htt响应所返回的字符流 HttpwebresponSe response /获得响应流 response=(httpwebresponserequest.GetresponseO catch(WebException ex) htp/www.Cuobiezinetjcc人工智能错别字校对系统AP|文档 htto/www.Cuobiezinetjcjc人工智能错别宇校对系统AP|文档 response = ex. Response as HttpwebresponSe Stream s= response. GetResponse Stream(: //Stream postData= Request Inputstream Stream Reader sRead new Stream Reader(s); string post Content = sRead. Read ToEndo sRead Close(; Rootobject rb Json Convert. Deserializeobject< Rootobject>(postcontent) foreach(Case ep in rb Cases) //Console. Write Line(ep. age) postContent =1 postContent = ep. Error +->+ep. Tips: Message Box. Show(postContent r Cases":[{"Eror":中国人民共和国","Tips":中华人民共和国 "," Sentence""腾讯今年中国人民共和国下半年上世纪捋在微僐账户钱包帐户 的“九宫格”中开设快速的笑着保险入口, ErrInfo","Pos: 4, MarkType:19, ErrLevel":1311 htp/www.Cuobiezinetjcc人工智能错别字校对系统AP|文档 htto/www.Cuobiezinetjcjc人工智能错别字校对系统AP文档 Console. WriteLine(postcontent) ∥ return postcontent;)回Json数据 ∥接收 获取pos过来的json数据结构 //Stream postData= Request Input stream /StreamReader sRead new StreamReader(postData //string postContent= sRead. ReadToEndo //sRead Close(; / Java具体代码地址及说明2 https:/github.com/textproofreading/jcuccuobiezijavaclient/blob/master/cu obiezi jcjc java sdk/cuobiezi icic java sdk/src/main/javalJcJcPoster java String url str http:/117.121.10.43:8234/spellcheck/jsoncheck/json_phrase String json data="i " content\":\"腾讯今年中国人民共和 国下半年上世纪捋在微信账户钱包帐户的“九宫格”中开设快速的笑着保险入 口,并上线保险产品。台万第二大金融控股公司富邦金控已与腾讯谈成合作 上述保险产品捋由富邦金控旗下内地子公司富邦财险开发或引进。\", \"mode.advanced\ biz typel":"show"1 2htto:/w. Cuo Biei. net jcJc人工智能错别字校对系统AP|文档 http://www.Cuobiezi.netJcjc人工智能错别字校对系统AP|文档 htto/www.Cuobiezinetjcjc人工智能错别宇校对系统AP|文档 String result sendPost2(url str, json data System. out. println (result); private static String sendPost2 (String urIStr, String dataJsoN)throws Exception i URL url new URL(urlStr); HttpurlconnecTionconn=(httpurlconnection) url. open Connection conn. setConnectTimeout(5000 conn. setRequestProperty Content-Type","application/json charset=UTF-8) conn. setDoOutput(true) conn. setDolnput(true) conn. setRequestMethod ( post"); OutputStream os= conn. getOutputstreamo os. write(dataJSoN getBytes(UTF-8)) os. close n read the response Inputstream in new Buffered Inputstream(conn. getInputStreamo) String result new BufferedReader(new InputStream Reader(in)) lines( collect(Collectors. joining(n")); in close( conn disconnect return result htp/www.Cuobiezinetjcc人工智能错别字校对系统AP|文档 htto/www.Cuobiezinetjcjc人工智能错别宇校对系统AP|文档 htp/www.Cuobiezinetjcc人工智能错别字校对系统AP|文档

...展开详情
试读 8P JcJc人工智能错别字校对系统技术接口文档
立即下载
限时抽奖 低至0.43元/次
身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
  • 签到新秀

  • 分享精英

关注 私信
上传资源赚钱or赚积分
最新推荐
JcJc人工智能错别字校对系统技术接口文档 46积分/C币 立即下载
1/8
JcJc人工智能错别字校对系统技术接口文档第1页
JcJc人工智能错别字校对系统技术接口文档第2页

试读结束, 可继续读1页

46积分/C币 立即下载