文档中心 > API类目 > 书旗内容文巢

alibaba.shuqi.original.openapi.correct.query.task (纠错查询)

纠错查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
user_id String 可选 123 用户ID
task_id String 可选 11_22_e3d30e8881114bc7a43b7addd7abcf4c 任务ID
scene String 可选 write_pub 场景

响应参数

名称 类型 示例值 描述
result HsfCommonResult 返回值
  • └ state
  • Number
  • 200
  • 返回状态
  • └ message
  • String
  • ok
  • 返回信息
  • data
  • CorrectQueryTaskResult
  • data
  • 返回data
  • └ sub_state
  • Number
  • 0
  • subState
  • └ sub_message
  • String
  • ok
  • subMessage
  • └ debug
  • String
  • debug
  • debug
  • word_edits
  • WordEdit []
  • wordEdits
  • wordEdits
  • └ position_start
  • Number
  • 0
  • positionStart
  • └ source
  • String
  • a
  • source
  • └ target
  • String
  • a
  • target
  • └ edit_op
  • String
  • a
  • editOp
  • └ confidence
  • BigDecimal
  • 0
  • confidence
  • └ edit_id
  • String
  • a
  • editId

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaShuqiOriginalOpenapiCorrectQueryTaskRequest req = new AlibabaShuqiOriginalOpenapiCorrectQueryTaskRequest();
req.setUserId("123");
req.setTaskId("11_22_e3d30e8881114bc7a43b7addd7abcf4c");
req.setScene("write_pub");
AlibabaShuqiOriginalOpenapiCorrectQueryTaskResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_shuqi_original_openapi_correct_query_task_response>
    <result>
        <state>200</state>
        <message>ok</message>
        <data>
            <sub_state>0</sub_state>
            <sub_message>ok</sub_message>
            <debug>debug</debug>
            <word_edits>
                <word_edit>
                    <position_start>0</position_start>
                    <source>a</source>
                    <target>a</target>
                    <edit_op>a</edit_op>
                    <confidence>0</confidence>
                    <edit_id>a</edit_id>
                </word_edit>
            </word_edits>
        </data>
    </result>
</alibaba_shuqi_original_openapi_correct_query_task_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部