注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 阿里翻译API

alibaba.seaking.cloud.title.diagnose (标题诊断)

标题诊断

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
category_id Number 可选 121 类目id
language String 可选 en 语种
platform String 可选 ae 平台
title String 可选 boy 标题

响应参数

名称 类型 示例值 描述
all_uppercase_words String [] Boy 全部大写的单词
contain_core_classes Boolean true 是否包含类目主词
disable_words String [] baba 敏感词
duplicate_words String [] hi 重复单词(包括单复数)
language_quality_score String 1 语言质量分
no_first_uppercase_list String [] no 首字母未大写单词
over_length_limit Boolean 系统自动生成
total_score Number 2 总分数
word_count Number 5 总单词数
word_spelled_correct_errors String [] nl 拼写错误单词

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSeakingCloudTitleDiagnoseRequest req = new AlibabaSeakingCloudTitleDiagnoseRequest();
req.setCategoryId(121L);
req.setLanguage("en");
req.setPlatform("ae");
req.setTitle("boy");
AlibabaSeakingCloudTitleDiagnoseResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_seaking_cloud_title_diagnose_response>
    <all_uppercase_words>
        <string>Boy</string>
    </all_uppercase_words>
    <contain_core_classes>true</contain_core_classes>
    <disable_words>
        <string>baba</string>
    </disable_words>
    <duplicate_words>
        <string>hi</string>
    </duplicate_words>
    <language_quality_score>1</language_quality_score>
    <no_first_uppercase_list>
        <string>no</string>
    </no_first_uppercase_list>
    <over_length_limit></over_length_limit>
    <total_score>2</total_score>
    <word_count>5</word_count>
    <word_spelled_correct_errors>
        <string>nl</string>
    </word_spelled_correct_errors>
</alibaba_seaking_cloud_title_diagnose_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

返回
顶部