## 文本智能纠错 ![](https://img.kancloud.cn/3b/b1/3bb19ff166b6176a49fa3d7b29f4635b_200x200.png) > 自动识别一段短文本中的错别字,具体片段、错别字在文本中的位置,对应的正确词组以及可信度和最终纠错后的结果。 ## 接口费用( [点击购买](https://market.topthink.com/product/404)) > 最低 0.002元/次 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/word/ecnet ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | appCode| string| 是|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | content| string | 是 | 文本内容 | ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | fragment | object | 具体的纠错片段 | | +ori\_frag | string | 错别字片段 | | +begin\_pos | int | 起点位置(字节长度) | | +correct\_frag | string | 替换后的结果 | | +end\_pos | int | 终点位置(字节长度) | | score | float | 可信度,最大1 | | correct\_result | string | 替换后的完整结果 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->wordEcnet() ->withContent('ThinkAPI是一个有休的接口服务') ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "fragment": [ { "ori_frag": "个有休", "begin_pos": 14, "correct_frag": "个优秀", "end_pos": 23 } ], "score": 0.491016, "correct_result": "ThinkAPI是一个优秀的接口服务" } ] } ~~~