在线查询词典接入文档
文档修订记录
| 文档版本号 | 修订日期 | 修订原因 |
|---|---|---|
| V1.0 | 2022.8.30 | 创建文档 |
| V1.1 | 2023.1.9 | 新增通用词典查询接口 |
| V1.2 | 2023.2.9 | 通用词典,词典来源新增拼音词典 CommonDictParam.DICT_TYPE_PINYIN |
| V1.3 | 2023.2.22 | 通用词典,词典来源新增svg描红词典,CommonDictParam.SOURCE_TYPE_TURING_SVG |
| V1.4 | 2023.5.24 | 在线词典,词典来源新增图灵儿童拼音词典 DictParam.DICT_TYPE_KID_PY 通用词典,词典来源来源新增图灵儿童拼音词典 CommonDictParam.SOURCE_TYPE_TURING_KID_PY |
概述
支持查询在线词典、通用词典,分词查询、查询古诗词全文。
集成步骤
1. 添加依赖库
//必须依赖库
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.squareup.okhttp3:okhttp:3.9.0'
implementation "org.java-websocket:Java-WebSocket:1.4.0"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.aliyun.dpa:oss-android-sdk:2.9.11'//SDKV2.4.1.25 以后需加入
// 词典
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
2. AndroidManifest配置
添加权限
<!--网络-->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<!--文件读写-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!--deviceID-->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!-- 读取手机状态,获取IMEI -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
<!-- android 10 在application节点添加以下适配高版本 -->
android:usesCleartextTraffic="true"
android:requestLegacyExternalStorage="true"
3. 代码混淆
代码混淆文件proguard-project.txt,添加如下内容
-keep class com.turing.**{ *;}
-dontwarn com.turing.**
-keep class org.java_websocket.**{*;}
-dontwarn org.java_websocket.**
-keep class org.slf4j.**{*;}
-dontwarn org.slf4j.**
4. SDK 初始化
使用在线查询词典功能前调用,请先调用SDK初始化代码。(SDK初始化详情见《接入指南说明文档》)
TuringInitializer.getInstance().initV3XXX()
5. 功能集成
实例化
var turingOnlineDict = TuringOnlineDict.getInstance(this)
功能集成
1. 在线词典查询
-
初始化请求查词技能时,当intent-code字段返回1000633,为查词结果;若intent-code为其他值,则未进入查词技能。建议设备端只展示查词结果。
-
设备端可通过云端返回的result-dicit字段判断词典类型,当dict字段返回为others时,为无查词结果,云端会将查词内容进行整句翻译,并将翻译结果返回给设备端。
方法
void query(String data, DictParam dictParam, int svg, TuringOSClientListener listener);
输入说明
| 参数 | 类型 | 说明 |
|---|---|---|
| data | String | 原始文本 |
| dictParam | DictParam | 词典请求参数 |
| svg | int | svg类型 |
| listener | TuringOSClientListener | 回调 |
DictParam 说明
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| dictType | String | Y | 词典类别优先级,默认图灵词典;具体取值通过DictParam获取,见下方 当输入值为niujin时,输出牛津词典,不输出附加词典 |
| dicts | List | Y | 词典类型;(只有dictType=DICT_TYPE_TULING 才需要传此参数)具体取值通过DictParam获取,见下方 若无指定字典类型,则按默认 顺序输出: 汉字(cn_char) 成语(cn_idiom)古诗词(cn_poem) 汉词(cn_word) 人名(cn_word_person) 英文单词(en_word) 英文短语(en_phrase)无查词内容(others) |
| oxfordVersion | int | N | 牛津词典版本号。默认为4 |
| additionalDict | List | N | 附件词典。支持配置词典项:汉英词典(cn_transl_en)、牛津词典(niujin) |
dictType 词典类别
| 参数 | 说明 |
|---|---|
| DictParam.DICT_TYPE_TULING | 图灵词典 |
| DictParam.DICT_TYPE_KID | 图灵自研词典 |
| DictParam.DICT_TYPE_KID_PY | 图灵儿童拼音词典 |
| DictParam.DICT_TYPE_NIUJIN | 牛津词典 |
dicts 词典类型
| 参数 | 说明 |
|---|---|
| DictParam.DICT_CN_CHAR | 汉字(单个字) |
| DictParam.DICT_CN_PINYIN | 拼音 |
| DictParam.DICT_CN_IDIOM | 汉语成语 |
| DictParam.DICT_CN_POEM | 古诗(包括诗人、标题、内容检索) |
| DictParam.DICT_CN_WORD | 汉语词语(字数>1) |
| DictParam.DICT_EN_WORD | 英语词(包括单词、词组、缩写等) |
| DictParam.DICT_EN_PHRASE | 英语词组 |
| DictParam.DICT_CN_WORD_PERSON | 人名 |
注意:
1、建议在dicts字段固定入参为["cn_char", "cn_idiom", "cn_word_person", "cn_word","en_word"],既可保证与默认查词顺序一致,也可避免输出cn_poem等非必须词典类型;
2、图灵自研词典默认词典优先级顺序是汉字、词语、成语、人名、古诗(包括诗人、标题、内容检索),且只支持这5种类型。
请求示例
-
请求图灵
```kotlin var dicts = arrayListOf( DictParam.DICT_CN_CHAR, DictParam.DICT_CN_IDIOM, DictParam.DICT_CN_WORD_PERSON, DictParam.DICT_CN_WORD, DictParam.DICT_EN_WORD )
val builder = DictParam.Builder() .dictType(DictParam.DICT_TYPE_TULING) .dicts(dicts)
val dictParam = builder.build() TuringOnlineDict.getInstance(this).query(str, dictParam, svg, object :TuringOSClientListener{ override fun onResult( code: Int,result: String?,baseResp: BaseResp?,extension: String?) { // result 为透传数据,需要客户端自行解析 json 数据。 } override fun onError(code: Int, msg: String?) {
}})
``` -
请求图灵儿童拼音词典
```kotlin dicts = ArrayList
() val builder = DictParam.Builder() .dictType(DictParam.DICT_TYPE_KID_PY) .dicts(dicts) ```
输出说明
TuringOSClientListener 说明
接口回调为异步线程,如有更新UI操作,请切换至主线程
package com.turing.server.listener;
public interface TuringOSClientListener {
/**
* 请求成功结果
* @param code 请求Code
* @param result 请求结果 JSON
* @param baseResp 请求结果 BaseResp,只包含基础字段
* @param extension 扩展信息
*/
void onResult(int code, String result, BaseResp baseResp, String extension);
/**
* 请求失败
* @param code 请求失败Code,参考错误码
* @param msg 请求失败信息
*/
void onError(int code, String msg);
}
返回示例及参数说明
1. 汉字
{
"code": 200,
"done": true,
"globalId": "151865247567371001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1011,
"parameters": {
"result": {
"dict": "cn_char",
"info": {
"radicals": "口",
"synonyms": ["跟", "与"],
"polyphone": [{
"pinyin": "huò",
"explanations": ["粉状或粒状物搀和在一起,或加水搅拌", "量词,指洗衣服换水的次数或一剂药煎的次数"],
"audio": "http://universe-file-limit.turingapi.com/202108271131/76c687d6cba072468408895c6d13425a/dict/e0e1c6a5e4fe46fbb5aeb38c74a09857.mp3",
"combineWords": [{
"type": "start",
"word": "和药"
}, {
"type": "start",
"word": "和弄"
}, {
"type": "start",
"word": "和稀泥"
}]
}, {
"pinyin": "huó",
"explanations": ["在粉状物中搅拌或揉弄使粘在一起"],
"audio": "http://universe-file-limit.turingapi.com/202108271131/1a9acc4104a7a48c4edffeb4cb8f29ce/dict/858559e29ddf4e558f4da86947db779d.mp3",
"combineWords": [{
"type": "start",
"word": "和面"
}, {
"type": "start",
"word": "和泥"
}]
}, {
"pinyin": "hú",
"explanations": ["打麻将或斗纸牌时某一家的牌合乎规定的要求,取得胜利。"],
"audio": "http://universe-file-limit.turingapi.com/202108271131/c90529779b1e518b5907e0a54e291312/dict/f26a9e74853949fdb3561db12a86710f.mp3"
}, {
"pinyin": "hè",
"explanations": ["和谐地跟着唱", "依照别人的诗词的题材或体裁作诗词"],
"audio": "http://universe-file-limit.turingapi.com/202108271131/59edafc6fac978f9ffe2d969b394cc38/dict/2121d64a816c4557a6fb1bfd452868eb.mp3",
"combineWords": [{
"type": "middle",
"word": "曲高和寡"
}, {
"type": "start",
"word": "和诗"
}]
}, {
"pinyin": "hé",
"explanations": ["相安,谐调", "平静", "平息争端", "数学上指加法运算中的得数", "连带", "连词,跟,同", "介词,向,对", "指日本国", "体育比赛不分胜负的结果", "姓。"],
"audio": "http://universe-file-limit.turingapi.com/202108271131/726fdd86d949ef8afd6d252aaeb250f8/dict/59175022f6f6478ba9ac106e963f4e3f.mp3",
"combineWords": [{
"type": "start",
"word": "和美"
}, {
"type": "start",
"word": "和睦"
}, {
"type": "start",
"word": "和谐"
}, {
"type": "start",
"word": "和声"
}, {
"type": "start",
"word": "和合"
}, {
"type": "start",
"word": "和衷共济"
}, {
"type": "end",
"word": "温和"
}, {
"type": "end",
"word": "祥和"
}, {
"type": "start",
"word": "和平"
}, {
"type": "start",
"word": "和气"
}, {
"type": "start",
"word": "和悦"
}, {
"type": "start",
"word": "和煦"
}, {
"type": "middle",
"word": "惠风和畅"
}, {
"type": "end",
"word": "讲和"
}, {
"type": "start",
"word": "和约"
}, {
"type": "start",
"word": "和议"
}, {
"type": "start",
"word": "和亲"
}, {
"type": "start",
"word": "和盘托出"
}, {
"type": "start",
"word": "和衣而卧"
}, {
"type": "start",
"word": "和服"
}, {
"type": "start",
"word": "和文"
}, {
"type": "middle",
"word": "大和民族"
}, {
"type": "start",
"word": "和棋"
}, {
"type": "start",
"word": "和局"
}]
}],
"strokesNumText": "共八画",
"structure": "左右结构",
"radicalsAudio": "http://book-iot-cdn.turingos.cn/202108271201/96e31a6120b5bd6ec3195a3388f2c228/dictV2/6511f3c85bea1dae46b4aba0a3895103.mp3",
"strokesNumAudio": "http://universe-file-limit.turingapi.com/202108271131/d2feca96e1175e9c54e6918c5d6fb12c/dict/ca2159e08562402096c0e76d56e8b7b3.mp3",
"translations": ["sum", " and", " harmonious", "tie", "draw"],
"antonyms": ["唱", "战"],
"strokesOrderText": "撇、横、竖、撇、点、竖、横折、横",
"copy": [
"http://book-iot-cdn.turingos.cn/202205311743/d83c7f871e45d450d3dd88878842eae5/svg/svgs/21644.svg"
],
"radicalsText": "口字旁",
"strokesOrderAudio": "http://universe-file-limit.turingapi.com/202108271131/b7dd62838c7a0a95764bcc19ae41f02d/dict/b8db8d556907401f84084b3976dd803f.mp3",
"word": "和",
"strokesNum": "8",
"strokesOrder": "ノ 一 丨 ノ 丶 丨 𠃍 一"
}
},
"content": "和"
}
}
}
}
返回参数说明
| 参数 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | int | Y | 状态code;参考状态code列表 |
| globalId | String | Y | 请求唯一标识,用于排查日志 |
| done | boolean | Y | 单轮请求是否结束 false为单轮请求未结束(云端还会返回结果) true为已结束(可进行下次请求或关闭连接) |
| message | String | Y | code对应的说明 |
| nlpResponse | Json | Y | nlp相关回复信息 |
| results | Json | Y | 输出结果集 |
nlpResponse - Intent字段说明
| 参数 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | int | Y | 输出应用code |
| operateState | int | Y | 应用状态(应用单独定义) |
| parameters | Json | Y | 识别结果参数 |
输出应用code可参照官网文档
Intent - parameters字段说明
| 参数 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| result | Json | Y | 查词结果 |
| content | String | Y | 查词内容 |
parameters - result字段说明
| 参数 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| dict | String | Y | 词典类型 汉字(cn\_char) 成语(cn\_idiom) 古诗词(cn\_poem) 汉词(cn\_word) 人名(cn\_word\_person) 英文单词(en\_word) 英文短语(en\_phrase) 无查词内容(others) |
| info | Json | Y | 查词信息,参考以下各词典类型字段; |
results 字段说明
| 参数 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| group | Int | N | 组类型(文本接入可忽略该参数): 0为独立输出; 大于0时可能包含同组相关内容 |
info 字段说明
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| word | String | Y | 汉字 |
| strokesOrder | String | Y | 笔顺 |
| strokesOrderText | String | Y | 笔顺文本 |
| strokesOrderAudio | String | Y | 笔顺音频 |
| strokesNum | String | Y | 笔画数 |
| strokesNumText | String | Y | 笔画数文本 |
| strokesNumAudio | String | Y | 笔画数音频 |
| radicals | String | Y | 偏旁 |
| radicalsText | String | Y | 偏旁文本 |
| radicalsAudio | String | Y | 偏旁音频 |
| translations | Array | Y | 汉译英 |
| structure | String | Y | 结构 |
| copy | Array | Y | 描红 |
| polyphone | Array | Y | 多音字 |
| synonyms | Array | Y | 近义词 |
| antonyms | Array | Y | 反义词 |
polyphone字段说明
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| pinyin | String | Y | 多音字读音 |
| audio | String | Y | 多音字音频 |
| combineWords | Array | Y | 组词 |
| explanations | Array | Y | 释义 |
combineWords字段说明
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| type | String | Y | 字在词中的位置(start、middle、end) |
| word | Array | Y | 组词 |
2. 成语
{
"code": 200,
"done": true,
"globalId": "151865487384371001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1011,
"parameters": {
"result": {
"dict": "cn_idiom",
"info": {
"pinyin": "héng sǎo qiān jūn",
"examples": [{
"en": "",
"cn": "1、中国人民解放军渡过长江,横扫千军,直捣敌人的老窝。"
}],
"synonyms": ["风卷残云"],
"translations": ["make a clean sweep of something"],
"antonyms": ["溃不成军", "丢盔卸甲"],
"explanations": [" 横扫:扫荡、扫除。把大量敌军象扫地似地一阵子扫除掉。"],
"derivation": "唐·杜甫《醉歌行》:“词源倒流三峡水,笔阵独扫千人军。”",
"copy": [
"http://book-iot-cdn.turingos.cn/202205311742/f3db7f08208f1a9709a18d4bc65d784b/svg/svgs/27178.svg",
"http://book-iot-cdn.turingos.cn/202205311742/4980954bacc79db2f10fc0e718624836/svg/svgs/25195.svg",
"http://book-iot-cdn.turingos.cn/202205311742/f49966586899ced1a0ec2476bf4c1536/svg/svgs/21315.svg",
"http://book-iot-cdn.turingos.cn/202205311742/fecc93c19828e62eeb5568a621922e8f/svg/svgs/20891.svg"
],
"wordAudio": "http://universe-file-limit.turingapi.com/202108271135/468a50ad40102e4e93497203202a7c2e/dict/40226f68638749c0949d476b5cf28e40.mp3",
"word": "横扫千军"
}
},
"content": "横扫千军"
}
}
}
}
info字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| pinyin | String | Y | 拼音 |
| antonyms | Array | Y | 反义词 |
| synonyms | Array | Y | 近义词 |
| derivation | String | Y | 出处 |
| word | String | Y | 成语 |
| explanations | String | Y | 释义 |
| translations | Array | Y | 汉译英 |
| copy | Array | Y | 描红 |
| wordAudio | String | Y | 内容音频 |
| examples | Array | Y | 双语例句 |
examples字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| en | String | N | 英文 |
| cn | String | N | 中文 |
3. 古诗词
古诗词词典类型,有以下几种输出逻辑,可根据type字段进行区分:
| 类别 | type | 说明 |
|---|---|---|
| 标题 | title | 当完整输入标题,且只有唯一匹配结果时,输出诗词全部内容,如“锦瑟”、“一剪梅中秋无月; 当有多条匹配结果时,输出相关标题列表,如“春晓”、“登鹳雀楼”; |
| 标题关键词 | keywords | 当输入标题为关键词,或有多个匹配结果时,输出相关标题列表,如“密州出猎”、“亥杂诗”等; |
| 单句诗词 | sentence | 当输入单句时,输出单句匹配结果,如“春眠不觉晓”; |
| 多句诗词 | multi\_sentence | 当输入多句诗词时,输出诗词上下句内容,如”疑是地上霜。举头“、“黄河入海流。欲穷千里目”; |
古诗词 - 标题(唯一结果)
{
"code": 200,
"done": true,
"globalId": "150350527146656001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1010,
"parameters": {
"result": {
"dict": "cn_poem",
"info": {
"details": [{
"code": "9e7e5e1e96e34b95b34edcc7b8881e69",
"notes": ["锦瑟:装饰华美的瑟。瑟:拨弦乐器,通常二十五弦。", "无端:犹何故。怨怪之词。五十弦:这里是托古之词。作者的原意,当也是说锦瑟本应是二十五弦。", "“庄生”句:《庄子齐物论》:“庄周梦为蝴蝶,栩栩然蝴蝶也;自喻适志与!不知周也。俄然觉,则蘧蘧然周也。不知周之梦为蝴蝶与?蝴蝶之梦为周与?”李商隐此引庄周梦蝶故事,以言人生如梦,往事如烟之意。"],
"dynasty": "唐代",
"sentences": [{
"sentence": "锦瑟无端五十弦,一弦一柱思华年。",
"notes": ["无端:犹何故。怨怪之词。", "五十弦:这里是托古之词。作者的原意,当也是说锦瑟本应是二十五弦。", "锦瑟:装饰华美的瑟。瑟:拨弦乐器,通常二十五弦。", "瑟:拨弦乐器,通常二十五弦"],
"explanations": ["瑟本有二十五根弦,但此诗创作于李商隐妻子死后,故五十弦有断弦之意"]
}, {
"sentence": "庄生晓梦迷蝴蝶,望帝春心托杜鹃。",
"notes": ["庄生晓梦迷蝴蝶:《庄子·齐物论》:“庄周梦为蝴蝶,栩栩然蝴蝶也;自喻适志与!不知周也。俄然觉,则蘧蘧然周也。不知周之梦为蝴蝶与?蝴蝶之梦为周与。”商隐此引庄周梦蝶故事,以言人生如梦,往事如烟之意。", "望帝春心托杜鹃:《华阳国志·蜀志》:“杜宇称帝,号曰望帝。……其相开明,决玉垒山以除水害,帝遂委以政事,法尧舜禅授之义,遂禅位于开明。帝升西山隐焉。时适二月,子鹃鸟鸣,故蜀人悲子鹃鸟鸣也。”子鹃即杜鹃,又名子规。"],
"explanations": ["但即使这样它的每一弦、每一音节,足以表达对那美好年华的思念。(此句为转折句。)"]
}, {
"sentence": "沧海月明珠有泪,蓝田日暖玉生烟。",
"notes": ["蓝田:《元和郡县志》:“关内道京兆府蓝田县:蓝田山,一名玉山,在县东二十八里。”", "沧海月明珠有泪:《博物志》:“南海外有鲛人,水居如鱼,不废绩织,其眼泣则能出珠。”《新唐书·狄仁杰传》:“仁杰举明经,调汴州参军,为吏诬诉黜陟,使闫立本如讯,异其才,谢曰:‘仲尼称观过知仁,君可谓沧海遗珠矣。’”", "珠有泪:《博物志》:“南海外有鲛人,水居如鱼,不废绩织,其眼泣则能出珠。”"],
"explanations": ["庄周其实知道自己只是向往那自由自在的蝴蝶。(本句是对“华年”的阐释。)"]
}, {
"sentence": "此情可待成追忆,只是当时已惘然。",
"notes": [ ],
"explanations": ["望帝那美好的心灵和作为可以感动杜鹃。(本句亦是对“华年”的阐释。)"]
}],
"about": "解读\n\n 这首诗历来注释不一,莫衷一是。或以为是悼亡之作,或以为是爱国之篇或以为是自比文才之论,或以为是抒写思念侍儿锦瑟。但以为是悼亡死者为最多。有人认为,开首以瑟弦五十折半为二十五,隐指亡妇华年二十五岁。这话未免有嫌牵强。但是,首联哀悼早逝却是真实。颔联以庄子亡妻鼓盆而歌和期效望帝化成子规而啼血,间接地描写了人生的悲欢离合。颈联以鲛人泣珠和良玉生烟的典故,隐约地描摹了世间风情迷离恍惚,可望而不可至。最后抒写生前情爱漫不经心,死后追忆",
"name": "锦瑟",
"appreciation": "鉴赏\n\n 《锦瑟》,是李商隐的代表作,爱诗的无不乐道喜吟,堪称最享盛名;然而它又是最不易讲解的一篇难诗。有人说是写给令狐楚家一个叫“锦瑟”的侍女的爱情诗;有人说是睹物思人,写给故去的妻子王氏的悼亡诗;也有人认为中间四句诗可与瑟的适、怨、清、和四种声情相合,从而推断为描写音乐的咏物诗;此外还有影射政治、自叙诗歌创作等许多种说法。千百年来众说纷纭,莫衷一是,大体而言,以“悼亡”和“自伤”说者为多。 \n\n 诗人大量借用庄生梦蝶,杜鹃啼血,",
"explanations": [ ],
"poet": "李商隐",
"content": "锦瑟无端五十弦,一弦一柱思华年。\n庄生晓梦迷蝴蝶,望帝春心托杜鹃。\n沧海月明珠有泪,蓝田日暖玉生烟。\n此情可待成追忆,只是当时已惘然。",
"tags": ["唐诗三百首", "思念", "爱情", "抒情"]
}],
"isWhole": true,
"type": "title"
}
},
"content": "锦瑟"
}
}
}
}
info字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| details | Array | Y | 古诗词内容说明 |
| type | String | Y | 古诗词输出内容类型(详见上文词典类型说明) |
| isWhole | Bool | Y | 返回全诗结果 true为已返回全部诗词 false为未返回全部诗词 |
当isWhole字段返回结果为false时,可根据唯一编码(code)请求《古诗词全诗获取接口文档》获取全诗。
details 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | String | Y | 全诗唯一编码 |
| tags | Array | N | 标签 |
| poet | String | N | 诗人 |
| notes | Array | N | 注释 |
| wordAudio | String | N | 全诗音频链接 |
| name | String | Y | 诗名 |
| dynasty | String | N | 朝代 |
| content | String | Y | 全诗原文 |
| explanations | Array | N | 全诗白话文 |
| appreciation | String | N | 全诗赏析 |
| about | String | N | 其他相关信息 |
| sentences | Array | N | 单句内容说明 |
sentences 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| explanations | Array | N | 单句白话文 |
| notes | Array | N | 单句注释 |
| audio | String | N | 单句音频链接 |
| sentence | String | N | 单句内容 |
古诗词 - 标题(多个结果)
{
"code": 200,
"done": true,
"globalId": "150339455752656001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1010,
"parameters": {
"result": {
"dict": "cn_poem",
"info": {
"details": [{
"code": "a2942a2f3f314b2385f2e66891044834",
"dynasty": "宋代",
"name": "卜算子",
"poet": "赵长卿",
"content": "十载仰高明,一见"
}, {
"code": "6b58eaf694154a5392c49e6c35a47bd1",
"dynasty": "宋代",
"name": "卜算子",
"poet": "程垓",
"content": "枕簟暑风消,帘幕"
}, {
"code": "301180ff6f1c4f8fbfab999f151f178e",
"dynasty": "宋代",
"name": "卜算子",
"poet": "蔡伸",
"content": "春事付莺花,曾是"
}, {
"code": "9f0a035dc32f4142bfafa57dc5b0bd4e",
"dynasty": "宋代",
"name": "卜算子",
"poet": "徐俯",
"content": "清池过雨凉,暗有"
}, {
"code": "457260fc0423429e8aeefb99207bc31d",
"dynasty": "宋代",
"name": "卜算子",
"poet": "石孝友",
"content": "人自蕊宫来,微步"
}, {
"code": "b2133c98fda24f2dbe8491e41c024ccf",
"dynasty": "宋代",
"name": "卜算子",
"poet": "杜安世",
"content": "深院花铺地。淡淡"
}, {
"code": "5f3e3d732fc54ddeb6fae1584d400092",
"dynasty": "宋代",
"name": "卜算子",
"poet": "陈道师",
"content": "梅岭数枝春,疏影"
}, {
"code": "b7025601fcec4894aab46b7a3b62e8f9",
"dynasty": "宋代",
"name": "卜算子",
"poet": "刘克庄",
"content": "风汉闲中做,彼岸"
}, {
"code": "2d6b18ba49954b779961ca6e032d80d8",
"dynasty": "宋代",
"name": "卜算子",
"poet": "美奴",
"content": "送我出东门,乍别"
}, {
"code": "13ab51407f5343c890d8e8932b81d2c1",
"dynasty": "宋代",
"name": "卜算子",
"poet": "朱敦儒",
"content": "古涧一枝梅,免被"
}],
"isWhole": false,
"type": "title"
}
},
"content": "卜算子"
}
}
}
}
info字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| details | Array | Y | 古诗词内容说明 |
| type | String | Y | 古诗词输出内容类型(详见上文词典类型说明) |
| isWhole | Bool | Y | 返回全诗结果 true为已返回全部诗词 false为未返回全部诗词 |
当isWhole字段返回结果为false时,可根据唯一编码(code)请求《古诗词全诗获取接口文档》获取全诗。
details 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | String | Y | 全诗唯一编码 |
| dynasty | String | N | 朝代 |
| name | String | Y | 诗名 |
| poet | String | N | 诗人 |
| content | String | Y | 首句原文 |
| wordAudio | String | Y | 首句原文音频 |
古诗词 - 标题关键词
{
"globalId": "125889981231310116",
"intent": {
"code": 1000633,
"operateState": 1010,
"parameters": {
"result": {
"dict": "cn_poem",
"info": {
"details": [{
"code": "483f2a2c0d914502beb84ee002e5e964",
"notes": [
"江城子:词牌名。",
"密州:今山东诸城。",
"老夫:作者自称,时年三十八岁。",
"聊:姑且,暂且。",
"狂:豪情。",
"左牵黄,右擎苍:左手牵着黄犬,右臂擎着苍鹰,形容围猎时用以追捕猎物的架势。",
"黄:黄犬。",
"苍:苍鹰。",
"锦帽貂裘:名词作动词使用,头戴着华美鲜艳的帽子。貂裘,身穿貂鼠皮衣。是汉羽林军穿的服装。",
"千骑卷平冈:形容马多尘土飞扬,把山冈像卷席子一般掠过。",
"千骑:形容随从乘骑之多。"
],
"dynasty": "宋代",
"sentences": [{
"sentence": "老夫聊发少年狂,左牵黄,右擎苍,锦帽貂裘,千骑卷平冈。为报倾城随太守,亲射虎,看孙郎。",
"notes": [
"狂:豪情。",
"锦帽貂裘:名词作动词使用,头戴着华美鲜艳的帽子。貂裘,身穿貂鼠皮衣。是汉羽林军穿的服装。",
"黄:黄犬。",
"千骑:上千个骑马的人,形容随从乘骑之多。",
"老夫:作者自称,时年三十八。",
"太守:指作者自己。",
"千骑卷平冈:形容马多尘土飞扬,把山冈像卷席子一般掠过。",
"聊:姑且,暂且。",
"倾城:全城的人都出来了。形容随观者之众。",
"看孙郎:孙郎,孙权。这里借以自喻。"
],
"explanations": [
"我姑且抒发一下少年的豪情壮志,左手牵着黄犬,右臂擎着苍鹰,戴着华美鲜艳的帽子,穿着貂皮做的衣服,带着上千骑的随从疾风般席卷平坦的山冈。为了报答满城的人跟随我出猎的盛情厚意,我要像孙权一样,亲自射杀猛虎。"
]
},
{
"sentence": "酒酣胸胆尚开张,鬓微霜,又何妨!持节云中,何日遣冯唐?会挽雕弓如满月,西北望,射天狼。",
"notes": [
"节:兵符,传达命令的符节。",
"微霜:稍白。",
"云中:汉时郡名,今内蒙古自治区托克托县一带,包括山西省西北一部分地区。",
"天狼:星名,又称犬星,旧说指侵掠,这里隐指西夏。《楚辞·九歌·东君》:“长矢兮射天狼。”",
"满月:圆月。",
"尚:更。",
"会:定将。",
"雕弓:弓背上有雕花的弓。(另解释为:天弓)",
"酒酣胸胆尚开张:极兴畅饮,胸怀开阔,胆气横生。",
"持节:是奉有朝廷重大使命。",
"挽:拉。"
],
"explanations": [
"我痛饮美酒,心胸开阔,胆气更为豪壮,(虽然)两鬓微微发白,(但)这又有何妨?什么时候皇帝会派人下来,就像汉文帝派遣冯唐去云中赦免魏尚的罪(一样信任我)呢?我将使尽力气拉满雕弓就像满月一样,朝着西北瞄望,射向西夏军队。"
]
}
],
"about": " 苏轼(1037年1月8日-1101年8月24日)字子瞻、和仲,号铁冠道人、东坡居士,世称苏东坡、苏仙,汉族,眉州眉山(四川省眉山市)人,祖籍河北栾城,北宋著名文学家、书法家、画家,历史治水名人。苏轼是北宋中期文坛领袖,在诗、词、散文、书、画等方面取得很高成就。文纵横恣肆;诗题材广阔,清新豪健,善用夸张比喻,独具风格,与黄庭坚并称“苏黄”;词开豪放一派,与辛弃疾同是豪放派代表,并称“苏辛”;散文著述宏富,豪放自如,与欧阳修并称“欧苏”,",
"name": "江城子·密州出猎",
"appreciation": "苏轼因此词有别于“柳七郎(柳永)风味”而颇为得意。他曾致书信于子骏表达这种自喜:“近却颇作小词,虽无柳七郎风味,亦自是一家,数日前猎于郊外,所获颇多。作得一阕,令东州壮士抵掌顿足而歌之,吹笛击鼓以为节,颇壮观也。”\n\n 此词开篇“老夫聊发少年狂”,出手不凡。用一“狂”字笼罩全篇,藉以抒写胸中雄健豪放的一腔磊落之气。接下去的四句写出猎的雄壮场面,表现了猎者威武豪迈的气概:词人左手牵黄犬,右臂驾苍鹰,好一副出猎的雄姿!随从武士个个也是“锦",
"explanations": [
"我姑且抒发一下少年的豪情壮志,左手牵着黄犬,右臂擎着苍鹰,戴着华美鲜艳的帽子,穿着貂皮做的衣服,带着上千骑的随从疾风般席卷平坦的山冈。为了报答满城的人跟随我出猎的盛情厚意,我要像孙权一样,亲自射杀猛虎。\n我痛饮美酒,心胸开阔,胆气更为豪壮,(虽然)两鬓微微发白,(但)这又有何妨?什么时候皇帝会派人下来,就像汉文帝派遣冯唐去云中赦免魏尚的罪(一样信任我)呢?我将使尽力气拉满雕弓就像满月一样,朝着西北瞄望,射向西夏军队。"
],
"poet": "苏轼",
"wordAudio": "http://book-iot-cdn.turingos.cn/202108121733/cf953a1e4b81d01a31b730c4b11f2827/dictV2/59a41ecae53754642aa5758aa5d1443b.mp3",
"content": "老夫聊发少年狂,左牵黄,右擎苍,锦帽貂裘,千骑卷平冈。为报倾城随太守,亲射虎,看孙郎。\n酒酣胸胆尚开张,鬓微霜,又何妨!持节云中,何日遣冯唐?会挽雕弓如满月,西北望,射天狼。",
"tags": [
"宋词三百首",
"初中古诗",
"豪放",
"狩猎",
"爱国"
]
}],
"isWhole": true,
"type": "keywords"
}
},
"content": "密州出猎"
}
}
}
info字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| details | Array | Y | 古诗词内容说明 |
| type | String | Y | 古诗词输出内容类型(详见上文词典类型说明) |
| isWhole | Bool | Y | 返回全诗结果 true为已返回全部诗词 false为未返回全部诗词 |
当isWhole字段返回结果为false时,可根据唯一编码(code)请求《古诗词全诗获取接口文档》获取全诗。
details 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | String | Y | 全诗唯一编码 |
| tags | Array | N | 标签 |
| poet | String | N | 诗人 |
| notes | Array | N | 注释 |
| wordAudio | String | N | 全诗音频链接 |
| name | String | Y | 诗名 |
| dynasty | String | N | 朝代 |
| content | String | Y | 全诗原文 |
| explanations | Array | N | 全诗白话文 |
| appreciation | String | N | 全诗赏析 |
| about | String | N | 其他相关信息 |
| sentences | Array | N | 单句内容说明 |
sentences 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| explanations | Array | N | 单句白话文 |
| notes | Array | N | 单句注释 |
| audio | String | N | 单句音频链接 |
| sentence | String | N | 单句内容 |
古诗词 - 单句诗词
{
"code": 200,
"done": true,
"globalId": "149115823165534001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1010,
"parameters": {
"result": {
"dict": "cn_poem",
"info": {
"details": [{
"sentence": "春眠不觉晓,处处闻啼鸟。",
"notes": ["不觉晓:不知不觉天就亮了。晓:早晨,天明,天刚亮的时候。", "晓:天刚亮的时候,春晓:春天的早晨。", "啼鸟:鸟啼,鸟的啼叫声", "闻:听见。啼鸟:鸟啼,鸟的啼叫声。"],
"explanation": "春日里贪睡不知不觉天已破晓,搅乱我酣眠的是那啁啾的小鸟。"
}],
"type": "sentence"
}
},
"content": "春眠不觉晓"
}
}
}
}
info字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| details | Array | Y | 古诗词内容说明 |
| type | String | Y | 古诗词输出内容类型(详见上文词典类型说明) |
| isWhole | Bool | Y | 返回全诗结果 true为已返回全部诗词 false为未返回全部诗词 |
当isWhole字段返回结果为false时,可根据唯一编码(code)请求《古诗词全诗获取接口文档》获取全诗。
details 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| explanations | Array | N | 单句白话文 |
| notes | Array | N | 单句注释 |
| wordAudio | String | N | 单句音频链接 |
| sentence | String | N | 单句内容 |
| code | Int | N | 全诗唯一编码 |
古诗词 - 多句诗词
{
"code": 200,
"done": true,
"globalId": "150339627455656001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1010,
"parameters": {
"result": {
"dict": "cn_poem",
"info": {
"details": [{
"code": "3fb799dd88824d0982e1332bf2484cd8",
"notes": [ ],
"dynasty": "唐代",
"sentences": [{
"sentence": "天生丽质难自弃,一朝选在君王侧。回眸一笑百媚生,六宫粉黛无颜色。",
"notes": ["丽质:美丽的姿质。", "无颜色:意谓相形之下,都失去了美好的姿容", "六宫粉黛:指宫中所有嫔妃。古代皇帝设六宫,正寝(日常处理政务之地)一,燕寝(休息之地)五,合称六宫。粉黛:粉黛本为女性化妆用品,粉以抹脸,黛以描眉。此代指六宫中的女性。无颜色:意谓相形之下,都失去了美好的姿容。", "粉黛:粉黛本为女性化妆用品,粉以抹脸,黛以描眉。此代指六宫中的女性"],
"explanations": ["杨家有个女儿刚刚长大,十分娇艳,养在深闺中,外人不知她美丽绝伦。"]
}, {
"sentence": "春寒赐浴华清池,温泉水滑洗凝脂。侍儿扶起娇无力,始是新承恩泽时。",
"notes": ["新承恩泽:刚得到皇帝的宠幸。", "侍儿:宫女。", "华清池:即华清池温泉,在今西安市临潼区南的骊山下。唐贞观十八年(644)建汤泉宫,咸亨二年(671)改名温泉宫,天宝六载(747)扩建后改名华清宫。唐玄宗每年冬、春季都到此居住。", "凝脂:形容皮肤白嫩滋润,犹如凝固的脂肪。《诗经·卫风·硕人》语“肤如凝脂”。"],
"explanations": ["天生丽质、倾国倾城让她很难埋没世间,果然没多久便成为了唐明皇身边的一个妃嫔。"]
}],
"about": "写作背景\n\n 唐宪宗元和元年(806),白居易任盩厔(今西安市周至县)县尉。一日,与友人陈鸿、王质夫到马嵬驿附近的仙游寺游览,谈及李隆基与杨贵妃事。王质夫认为,像这样突出的事情,如无大手笔加工润色,就会随着时间的推移而消没。他鼓励白居易:“乐天深于诗,多于情者也,试为歌之,何如?”于是,白居易写下了这首长诗。陈鸿同时写了一篇传奇小说《长恨歌传》。",
"name": "长恨歌",
"appreciation": "鉴赏\n\n 《长恨歌》是白居易诗作中脍炙人口的名篇,作于元和元年(806),当时诗人正在盩厔县(今陕西周至)任县尉。这首诗是他和友人陈鸿、王质夫同游仙游寺,有感于唐玄宗、杨贵妃的故事而创作的。在这首长篇叙事诗里,作者以精炼的语言,优美的形象,叙事和抒情结合的手法,叙述了唐玄 宗、杨贵妃在安史之乱中的爱情悲剧:他们的爱情被自己酿成的叛乱断送了,正在没完没了地吃着这一精神的苦果。唐玄宗、杨贵妃都是历史上的人物,诗人并不拘泥于历史,而是借着历",
"explanations": [ ],
"poet": "白居易",
"content": "汉皇重色思倾国,御宇多年求不得。杨家有女初长成,养在深闺人未识。\n天生丽质难自弃,一朝选在君王侧。回眸一笑百媚生,六宫粉黛无颜色。\n春寒赐浴华清池,温泉水滑洗凝脂。侍儿扶起娇无力,始是新承恩泽时。\n云鬓花颜金步摇,芙蓉帐暖度春宵。春宵苦短日高起,从此君王不早朝。 \n\n承欢侍宴无闲暇,春从春游夜专夜。后宫佳丽三千人,三千宠爱在一身。\n金屋妆成娇侍夜,玉楼宴罢醉和春。姊妹弟兄皆列土,可怜光彩生门户。\n遂令天下父母心,不重生男重生女。骊宫高处",
"tags": ["唐诗三百首", "写人", "爱情", "讽喻", "叙事", "长诗"]
}],
"isWhole": false,
"type": "multi_sentence"
}
},
"content": "六宫粉黛无颜色。春寒赐浴"
}
}
}
}
info字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| details | Array | Y | 古诗词内容说明 |
| type | String | Y | 古诗词输出内容类型(详见上文词典类型说明) |
| isWhole | Bool | Y | 返回全诗结果 true为已返回全部诗词 false为未返回全部诗词 |
当isWhole字段返回结果为false时,可根据唯一编码(code)请求《古诗词全诗获取接口文档》获取全诗。
details 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | String | Y | 全诗唯一编码 |
| tags | Array | N | 标签 |
| poet | String | N | 诗人 |
| notes | Array | N | 注释 |
| wordAudio | String | N | 全诗音频链接 |
| name | String | Y | 诗名 |
| dynasty | String | N | 朝代 |
| content | String | Y | 全诗原文 |
| explanations | Array | N | 全诗白话文 |
| appreciation | String | N | 全诗赏析 |
| about | String | N | 其他相关信息 |
| sentences | Array | N | 单句内容说明 |
sentences 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| explanations | Array | N | 单句白话文 |
| notes | Array | N | 单句注释 |
| audio | String | N | 单句音频链接 |
| sentence | String | N | 单句内容 |
4. 汉词
{
"code": 200,
"done": true,
"globalId": "151865454271371001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1011,
"parameters": {
"result": {
"dict": "cn_word",
"info": {
"copy": [
"http://book-iot-cdn.turingos.cn/202205311745/36ca62cebdff2e27d68bff1c5fd42b31/svg/svgs/32654.svg",
"http://book-iot-cdn.turingos.cn/202205311745/bf7ce38c64b706b93f5457ac1d2955e6/svg/svgs/20029.svg"
],
"polyphone": [{
"pinyin": "měi lì",
"examples": [{
"en": "",
"cn": "她的清秀美丽使他倾倒。"
}, {
"en": "",
"cn": "观赏一幅美丽的图画使人心满意足。"
}, {
"en": "",
"cn": "我的女儿十八岁了,已经长成为美丽的淑女。"
}, {
"en": "",
"cn": "他写了一首诗赞扬她的美丽。"
}, {
"en": "",
"cn": "她的微笑使她更美丽了。"
}, {
"en": "",
"cn": "王子住在一个美丽的大城堡里。"
}, {
"en": "",
"cn": "因为污染严重,许多美丽的鱼类正在面临绝种。"
}, {
"en": "",
"cn": "他爱上那位美丽的姑娘是很自然的事。"
}],
"synonyms": ["俊俏", "秀美", "美观", "美貌", "俏丽", "优美", "美艳", "俊美"],
"translations": ["beautiful"],
"antonyms": ["难看", "丑陋", "丑恶"],
"explanations": ["使人看了产生快感的;好看。"],
"audio": "http://universe-file-limit.turingapi.com/202108271134/c620f08a5b97a2181e9cf599ed039e79/dict/cn_word/b139dc7eb8ec4a438b643551740e024a.mp3"
}],
"wordAudio": "http://universe-file-limit.turingapi.com/202108271134/c620f08a5b97a2181e9cf599ed039e79/dict/cn_word/b139dc7eb8ec4a438b643551740e024a.mp3",
"word": "美丽"
}
},
"content": "美丽"
}
}
}
}
info字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| polyphone | Array | Y | 读音相关数据 |
| word | String | Y | 词语 |
| copy | Array | Y | 描红 |
| wordAudio | String | Y | 内容音频 |
_\polyphone 字段说明 \_
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| pinyin | String | Y | 拼音 |
| examples | Array | Y | 双语例句 |
| antonyms | Array | Y | 反义词 |
| synonyms | Array | Y | 近义词 |
| explanations | Array | Y | 释义 |
| translations | String | Y | 汉译英 |
| audio | String | Y | 多音字音频 |
examples字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| en | String | N | 英文 |
| cn | String | N | 中文 |
5. 历史诗人名
配合古诗词词典使用,支持查询中国古诗词中常见诗人的生平简介及人物名
{
"code": 200,
"done": true,
"globalId": "151865721740371001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1011,
"parameters": {
"result": {
"dict": "cn_word_person",
"info": [{
"pinyin": "lǐ bái",
"name": "李白",
"wordAudio": "http://book-iot-cdn.turingos.cn/202108271209/76465cc856f2fe81919a5ab066e9a097/dictV2/293040fc607f40caf6d6e16042012182.mp3",
"introduction": "李白(701年-762年),字太白,号青莲居士,唐朝浪漫主义诗人,被后人誉为“诗仙”。祖籍陇西成纪(待考),出生于西域碎叶城,4岁再随父迁至剑南道绵州。李白存世诗文千余篇,有《李太白集》传世。762年病逝,享年61岁。其墓在今安徽当涂,四川江油、湖北安陆有纪念馆。"
}]
},
"content": "李白"
}
}
}
}
info字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| pinyin | String | Y | 拼音 |
| name | String | Y | 人名名称 |
| wordAudio | String | Y | 内容音频 |
| copy | Array | Y | 描红 |
| introduction | Array | Y | 生平简介 |
6. 英文单词
{
"code": 200,
"done": true,
"globalId": "151865664038371001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1011,
"parameters": {
"result": {
"dict": "en_word",
"info": {
"phoneticEn": "həˈləʊ",
"presentParticiple": "helloing",
"phoneticUsAudio": "http://universe-file-limit.turingapi.com/202108271138/03b27c4c8fca70c8270c546d5577a7c3/dict/en_word_us/4fd718abf2954e73b30697ea91f88de9.mp3",
"synonyms": [{
"en": "greetings",
"cn": ""
}, {
"en": "good",
"cn": ""
}, {
"en": "salutations",
"cn": ""
}, {
"en": "day",
"cn": ""
}],
"sentencePattern": [ ],
"verb": "",
"wordAudio": "http://book-iot-cdn.turingos.cn/202108271208/6b5861215605c231932ec07aa3813dcd/dictV2/5d41402abc4b2a76b9719d911017c592.mp3",
"superlativeDegree": "",
"vocabularyGroup": [{
"en": "golden hello",
"cn": "高额应聘金"
}, {
"en": "hello girl",
"cn": "女话务员"
}, {
"en": "hello screen",
"cn": "呼叫屏幕"
}],
"thirdSingular": "helloes",
"adjective": "",
"referenceArticle": ["Lily Cary helloed from the porch of her house..but he did not turn his head. 出自: T. Morrison"],
"examples": [{
"cnAudio": "",
"enAudio": "",
"en": "You know, he didn "t even bother to say hello to me when I saw him on the street yesterday. "",
"cn": "你可知道,昨天我在马路上见到他,他连招呼都不跟我打。"
}, {
"cnAudio": "",
"enAudio": "",
"en": "We didn't have this planned. But we decided to stop by just to say hello, when I heard my boys were going to be here. I couldn't resist.",
"cn": "我们并没有这个计划。但是我听说我的支持者们会聚集在这里,于是我们决定停下,来跟大家问好。我当然很乐意这么做。"
}, {
"cnAudio": "",
"enAudio": "",
"en": "I walked up to that girl to say hello, but she blew me off.",
"cn": "我走到那个女孩的面前跟她打招呼,但是她没有理我。"
}, {
"cnAudio": "",
"enAudio": "",
"en": "You can't walk anywhere in Java without an entourage of the most gorgeous children, who rush up to say hello with the warmest smiles.",
"cn": "在爪哇,到哪里都可以看见可爱的孩子,他们总是带着温暖的微笑奔过来和我们说哈罗。"
}, {
"cnAudio": "",
"enAudio": "",
"en": "Hello everyone, I'm new to the front, very pleased to be a member of the company.",
"cn": "大家好,我是新来的前台,非常高兴能够成为公司的一员。"
}, {
"cnAudio": "",
"enAudio": "",
"en": "Hello Dad, just a few lines to let you know I'm well and hope you all are too.",
"cn": "你好,爸爸,我只说几句话,但你得知道我很好,希望你也是。"
}, {
"cnAudio": "",
"enAudio": "",
"en": "The fans of that brand have literally stolen the image to make fan art, claiming that Hello Kitty is now part of our pop culture.",
"cn": "HelloKitty品牌的粉丝公然剽窃这个图像来做同仁艺术,还宣称HelloKitty现在已是我们流行文化的一部分。"
}, {
"cnAudio": "",
"enAudio": "",
"en": "Girls don't necessarily have to have hour long conversations every night but its nice for us to hear your voice even for a quick hello.",
"cn": "女孩子虽然不用你整晚陪她说话,但是有时很想听见你轻轻的问候也很美。"
}, {
"cnAudio": "",
"enAudio": "",
"en": "Hello- nice to meet you. Take a lott- I'll be down in a minute.",
"cn": "你好,很快活认识你。请坐,我马高上去。"
}, {
"cnAudio": "",
"enAudio": "",
"en": "Then he spoke slowly, but I could not (was not able to) understand hello m.",
"cn": "后来,他说话说得慢了,可是我还是听不懂他的话。"
}],
"phoneticUs": "həˈləʊ",
"antonyms": [{
"en": "farewell",
"cn": ""
}, {
"en": "good-bye",
"cn": ""
}],
"explanationEn": "abstract: \"Hello\" is a song by American pop recording duo Karmin. The song is the second official single from their debut EP of the same name, Hello.",
"pastParticiple": "helloed",
"explanations": [{
"pos": "int",
"meaning": "喂;你好"
}, {
"pos": "n",
"meaning": "(表示问候时的叫声)"
}],
"phrases": [ ],
"preterit": "helloed",
"nounPlurals": "hellos",
"word": "hello",
"comparativeDegree": "",
"phoneticEnAudio": "http://universe-file-limit.turingapi.com/202108271138/39c76132325bce97ec3d71397582bd32/dict/en_word_en/199abb8af28d4707a689bbe5ff14c702.mp3"
}
},
"content": "hello"
}
}
}
}
info字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| adjective | String | Y | 形容词 |
| comparativeDegree | String | Y | 比较级 |
| nounPlurals | String | Y | 名词复数 |
| pastParticiple | String | Y | 过去分词 |
| phoneticEn | String | Y | 英音标 |
| phoneticUs | String | Y | 美音标 |
| phrases | Array | Y | 短语 |
| presentParticiple | String | Y | 现在分词 |
| preterit | String | Y | 过去式 |
| superlativeDegree | String | Y | 最高级 |
| sentencePattern | Array | Y | 常用句型 |
| thirdSingular | String | Y | 第三人称单数 |
| verb | String | Y | F |
| referenceArticle | Array | Y | 引文 |
| phoneticEnAudio | String | Y | 英音标音频 |
| wordAudio | String | Y | 内容音频 |
| synonyms | Array | Y | 近义词 |
| vocabularyGroup | Array | Y | 词汇搭配 |
| examples | Array | Y | 双语例句 |
| antonyms | Array | Y | 反义词 |
| explanations | Array | Y | 英译汉 |
| word | String | Y | 内容 |
| phoneticUsAudio | String | Y | 美音标音频 |
| explanationEn | String | Y | 英英释义 |
examples/vocabularyGroup/apastParticiplentonyms 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| en | String | N | 英文 |
| cn | String | N | 中文 |
| cnAudio | String | N | 中文音频 |
| enAudio | String | N | 英文音频 |
explanations 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| pos | String | N | 词性 |
| meaning | String | N | 词义 |
7. 英文短语
{
"code": 200,
"done": true,
"globalId": "150339150761656001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1010,
"parameters": {
"result": {
"dict": "en_phrase",
"info": {
"examples": [{
"cnAudio": "",
"enAudio": "",
"en": "How are you fixed for cash?",
"cn": "你有多少现金?"
}, {
"cnAudio": "",
"enAudio": "",
"en": "you feeling today?",
"cn": "你今天觉得怎么样?"
}, {
"cnAudio": "",
"enAudio": "",
"en": "Hello John, how are you?",
"cn": "哈罗,约翰,你好吗?"
}],
"phrase": "how are you",
"explanations": ["你好"]
}
},
"content": "how are you"
}
}
}
}
info 字段说明
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| examples | Array | Y | 双语例句 |
| phrase | String | Y | 短语内容 |
| explanations | Array | Y | 释义 |
examples字段说明
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| en | String | Y | 英文 |
| cn | String | Y | 中文 |
| enAudio | String | Y | 英文音频 |
| cnAudio | String | Y | 中文音频 |
8. 牛津词典
{
"code": 200,
"done": true,
"globalId": "154480613972195001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1010,
"parameters": {
"result": {
"operation": "",
"oxfordVersion": 4,
"dictType": "niujin",
"info": [{
"entry": [{
"sn-gs": [{
"sn-g": [ ]
}]
}],
"anagram": [
"be 的过去式 "
],
"or-wd": [
"be"
],
"h": [
"was"
],
"pron-gs": [{
"geo": "英",
"audioUrl": "http://book-iot-cdn.turingos.cn/202202172010/9715c4d8a99f0122c474ab79e429dbf8/dict/niujin/niujin_data/Headwordaudio/W/was%23_gb_1.mp3",
"phon": "wəz",
"audio": "was#_gb_1"
},
{
"geo": "美",
"audioUrl": "http://book-iot-cdn.turingos.cn/202202172010/0882089d5bbac395cb6f719b22f7fd10/dict/niujin/niujin_data/Headwordaudio/W/was%23_us_3_rr.mp3",
"phon": "wəz",
"audio": "was#_us_3_rr"
}
],
"vp-gs": [{
"pastpart": "过去分词 been"
},
{
"past": "过去式 was"
},
{
"thirdps": "第三人称单数 is"
},
{
"prespart": "现在进行时 being"
}
],
"infl-g": [
"was"
]
}]
},
"content": "was"
}
}
}
info 字段说明
| 参数 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| h | string | Y | 单词文本 |
| infl-g | array | Y | 单词所有变形 |
| pos-g | array | Y | 单词所有词性 |
| label-g | array | Y | 单词标识,包括语体、地理、学科标识 |
| gram-g | string | Y | 单词的语法说明 |
| vp-gs | array | Y | 单词变形的具体说明 |
| v-gs | array | Y | 单词的变体 |
| Ox-aw | array | Y | 用于说明单词是否属于牛津3000词或学术用词 |
| anagram | array | Y | 原词的其他变形词 |
| or-wd | array | Y | 原词文本 |
| pron-gs | array | N | 单词音标及发音 |
| ...geo | string | N | 用于说明是英式还是美式发音 |
| ...phon | string | N | 单词音标 |
| ...audio | string | N | 单词发音 |
| entry | array | N | 单词详细信息 |
| ...pos-g | string | N | 单词的某个词性 |
| ...sn-gs | array | N | 该词性下的单词释义及例句 |
| ......shcut | array | N | 用于说明该单词的释义的类别或范围 |
| .........en | string | N | 英文说明 |
| .........cn | string | N | 中文说明 |
| ......sn-g | array | N | 单词的一条释义 |
| .........gram-g | string | N | 单词某个释义的语法 |
| .........cf | array | N | 单词在某个或某个释义的用法 |
| .........dis-g | array | N | 对在该释义在的用法进一步说明 |
| .........v-gs | array | N | 单词在某个释义下的变体 |
| .........xr-gs | array | N | 释义的参见项 |
| .........label-g | array | N | 释义的语体、地理、学科标识 |
| .........def | array | N | 释义 |
| ............en | string | N | 英文释义 |
| ............cn | string | N | 中文释义 |
| .........x-gs | array | N | 这几种用法的例句 |
| ............cf | array | N | 单词在某个例句中的用法 |
| ............en | string | N | 英文例句 |
| ............cn | string | N | 例句中文翻译 |
| ............pron-gs | array | N | 例句发音 |
| ...............geo | string | N | 用于说明是英式还是美式发音 |
| ...............audio | string | N | 例句音频 |
| ...pv-gs | array | N | 该词性下的短语动词组 |
| ......pv | array | N | 短语动词 |
| ......v-gs | array | N | 短语的变体 |
| ......sn-gs | array | N | 该短语动词的解释及例句 |
| .........v-gs | array | N | 在某个释义下的变体 |
| .........xr-gs | array | N | 短语在某个释义下的参见项 |
| .........label-g | array | N | 短语标识,用于说明其语体、地理、学科 |
| .........def | array | N | 该短语动词的解释 |
| ............en | string | N | 英文解释 |
| ............cn | string | N | 中文解释 |
| .........x-gs | array | N | 该短语动词的例句 |
| ............label-g | array | N | 该句子的地理、语体、学科标识 |
| ............en | string | N | 英文例句 |
| ............cn | string | N | 例句的中文翻译 |
| ............pron-gs | array | N | 例句的发音 |
| ...............geo | string | N | 用于说明是英式还是美式发音 |
| ...............audio | string | N | 例句音频 |
| ...idm-gs | array | N | 该词性下的习语组 |
| ......xr-gs | array | N | 习语的参见项 |
| .........idm-g | array | N | 习语的信息 |
| ............idm | array | N | 习语 |
| ............v-gs | array | N | 习语的变体 |
| ............sn-gs | array | N | 习语的解释和例句 |
| ...............def | array | N | 习语的解释 |
| ..................en | string | N | 英文解释 |
| ..................cn | string | N | 中文解释 |
| ...............x-gs | array | N | 习语的例句 |
| ..................en | string | N | 英文例句 |
| ..................cn | string | N | 例句的中文翻译 |
| ..................pron-gs | array | N | 例句的发音 |
| .....................geo | string | N | 用于说明是英式还是美式发音 |
| .....................audio | string | N | 例句音频 |
| ...dr-gs | array | N | 派生词信息 |
| ......dr | array | N | 派生词 |
| ......v-gs | array | N | 派生词变体 |
| ......pos-g | array | N | 派生词词性 |
| ......infl-g | array | N | 派生词的变形 |
| ......pron-gs | array | N | 派生词音标及发音 |
| .........geo | string | N | 用于说明是英式还是美式发音 |
| .........phon | string | N | 派生词的音标 |
| .........audio | string | N | 派生词的发音 |
| ......sn-gs | array | N | 派生词的其他信息 |
| .........gram-g | string | N | 派生词的语法说明 |
| .........xr-gs | array | N | 习语的参见项 |
| .........x-gs | array | N | 派生词的例句 |
| ............cf | array | N | 派生词在某个例句中的用法 |
| ............label-g | array | N | 派生词的语体、地理、学科标识 |
| ............en | string | N | 英文例句 |
| ............cn | string | N | 例句的中文翻译 |
| ............pron-gs | array | N | 例句的发音 |
| ...............geo | string | N | 用于说明是英式还是美式发音 |
| ...............audio | string | N | 例句音频 |
9. 无词典类型
{
"code": 200,
"done": true,
"globalId": "142648208233479001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1010,
"parameters": {
"result": {
"dict": "others",
"info": {
"translationAudio": "http://book-iot-cdn.turingos.cn/202105121944/7a2c7ab7d428e82787a3a02112399c59/dictV2/e3660089f2f6d03797921cd084f33b6d.mp3",
"translation": "Until the surgery",
"word": "直到手术中才将",
"wordAudio": "http://book-iot-cdn.turingos.cn/202108191517/57abd44c331295ca23d473791197af2a/dictV2/76251a626ed99724dda148d5cda2afc3.mp3",
}
},
"content": "直到手术中才将"
}
}
}
}
info字段说明
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| word | String | Y | 待查词内容 |
| translation | String | Y | 翻译内容 |
| translationAudio | String | Y | 翻译音频 |
| wordAudio | String | Y | 查词内容音频 |
10.图灵儿童拼音类型
声母
{
"code": 200,
"done": true,
"globalId": "",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1011,
"parameters": {
"result": {
"dict": "cn_pinyin",
"dictType": "Turingkid",
"info": {
"audioUrl": "https://source1.qiaoxuesi.com/source/audio/219unmq8bh7/1669191192091_normed00.mp3",
"imgUrl": "https://source1.qiaoxuesi.com/source/img/1663060805006.png",
"spelling": "m",
"spellingGif": "https://source1.qiaoxuesi.com/xuepinyin/gif/12t7akpfisu1662109726190.gif",
"titleAudioUrl": "https://source1.qiaoxuesi.com/source/audio/bc8dac3cvv/1668678699003_normed00.mp3",
"typeExt": 1,
"videoUrl": "https://source1.qiaoxuesi.com/source/video/u1q1o7a2rt/1660918424457_320_170.mp4"
}
}
}
}
}
}
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| spelling | String | 是 | 文本 |
| titleAudioUrl | String | 是 | 音频 |
| spellingGif | String | 是 | 拼音gif |
| imgUrl | String | 是 | 象形图片 |
| audioUrl | String | 是 | 顺口溜音频 |
| videoUrl | String | 是 | 拼音学习视频 |
| videoCoverUrl | String | 是 | 拼音学习视频封面图 |
| typeExt | int | 是 | 拼音词典查询类别扩展字段 0:韵母;1.声母;3:拼读;4:整体认读 |
韵母
{
"code": 200,
"done": true,
"globalId": "",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1011,
"parameters": {
"result": {
"dict": "cn_pinyin",
"dictType": "Turingkid",
"info": {
"audioUrl": "https://source1.qiaoxuesi.com/xuepinyin/audio/137dlzvy2xj1652695957079_normed00.mp3",
"imgUrl": "https://source1.qiaoxuesi.com/source/img/1663060819091.png",
"spelling": "ɑi",
"spellingGif": "https://source1.qiaoxuesi.com/xuepinyin/gif/1layjq4ney1662109709706.gif",
"titleAudioUrl": "https://source1.qiaoxuesi.com/xuepinyin/audio/v4psa1uugf/1663758139055_normed00.mp3",
"toneOrder": "a",
"tones": [{
"ci": "开心",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-e9e1a24dbd934da5988b6dde5f48be3b_normed00.mp3",
"pin": "k-ɑi",
"pinAudioUrl": "https://source1.qiaoxuesi.com/source/audio/295f7c7ebkl_1653477636373_normed00.mp3",
"tone": "āi",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/uu2xtp4uto/1662355157516_normed00.mp3",
"zi": "开",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/295f7c7ebkl_1653477636373_normed00.mp3"
}, {
"ci": "白天",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-24cf6d90de594adb9efd67935d8e1765_normed00.mp3",
"pin": "b-ɑi",
"pinAudioUrl": "https://source1.qiaoxuesi.com/source/audio/289ipwqxe8h_1653477298257_normed00.mp3",
"tone": "ái",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/2o47sxl2b9c/1651809615488_normed00.mp3",
"zi": "白",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/289ipwqxe8h_1653477298257_normed00.mp3"
}, {
"ci": "改正",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-c2987747a8d247c4951e155714d0dacc_normed00.mp3",
"pin": "g-ɑi",
"pinAudioUrl": "https://source1.qiaoxuesi.com/source/audio/1fwn86ag818_1653477510828_normed00.mp3",
"tone": "ǎi",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/1oufr3jcjt/1651809633609_normed00.mp3",
"zi": "改",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/1fwn86ag818_1653477510828_normed00.mp3"
}, {
"ci": "太阳",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-097b7e0655fc4a56b995f521f58dcbc1_normed00.mp3",
"pin": "t-ɑi",
"pinAudioUrl": "https://source1.qiaoxuesi.com/source/audio/sxz38nwx0_1653478156900_normed00.mp3",
"tone": "ài",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/6pmiiu6q4w/1651820482512_normed00.m4a",
"zi": "太",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/sxz38nwx0_1653478156900_normed00.mp3"
}],
"typeExt": 0,
"videoUrl": "https://source1.qiaoxuesi.com/source/video/1vuw1z4a70a/1662347551226_320_170.mp4"
}
}
}
}
}
}
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| spelling | String | 是 | 文本 |
| titleAudioUrl | String | 是 | 音频 |
| spellingGif | String | 是 | 拼音gif |
| imgUrl | String | 是 | 象形图片 |
| audioUrl | String | 是 | 顺口溜音频 |
| videoUrl | String | 是 | 拼音学习视频 |
| toneOrder | String | 是 | 音序 |
| typeExt | int | 是 | 拼音词典查询类别扩展字段 0:韵母;1.声母;3:拼读;4:整体认读 |
| tones | object | 否 | 四声调文本 |
tones字段说明
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| tone | String | 是 | 四声调文本 |
| toneAudioUrl | String | 是 | 四声调音频 |
| pin | String | 否 | 拼读 |
| pinAudioUrl | String | 否 | 拼读音频 |
| ci | String | 是 | 声调范字 |
| ciAudioUrl | String | 是 | 声调范字音频 |
| zi | String | 是 | 声调范词 |
| ziAudioUrl | String | 是 | 声调范词音频 |
整体认读
{
"code": 200,
"done": true,
"globalId": "",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1011,
"parameters": {
"result": {
"dict": "cn_pinyin",
"dictType": "Turingkid",
"info": {
"audioUrl": "https://source1.qiaoxuesi.com/xuepinyin/audio/dpaxi5xlni/1663758190814_normed00.mp3",
"imgUrl": "https://source1.qiaoxuesi.com/source/img/1663060965077.png",
"spelling": "zhi",
"spellingGif": "https://source1.qiaoxuesi.com/xuepinyin/gif/khvydd7x7z1662109746415.gif",
"titleAudioUrl": "https://source1.qiaoxuesi.com/xuepinyin/audio/dpaxi5xlni/1663758190814_normed00.mp3",
"toneOrder": "z",
"tones": [{
"ci": "知识",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-06e416086e8a42a3a90f1a19f3fcdf3d_normed00.mp3",
"tone": "zhī",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/hxpzagzwph/1651815004245_normed00.mp3",
"zi": "知",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/15nzurq9xq0_1653477210360_normed00.mp3"
}, {
"ci": "直线",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-0da199f31eab4f25b622efb65d5797f6_normed00.mp3",
"tone": "zhí",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/1t76gukoddn/1651815015867_normed00.mp3",
"zi": "直",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/1v9maa47tgh_1653477129441_normed00.mp3"
}, {
"ci": "纸张",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-f9e9ca28072b40d89c4494c9485c3dd3_normed00.mp3",
"tone": "zhǐ",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/g5x0fkh4vq/1651815031542_normed00.mp3",
"zi": "纸",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/16ct4bqvrco_1653477130808_normed00.mp3"
}, {
"ci": "治理",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-2d2d232ec42e4baab3a989eb42588c74_normed00.mp3",
"tone": "zhì",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/2l2bwwg9a64/1651815041979_normed00.mp3",
"zi": "治",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/2ev0jnrxwfx_1653477132669_normed00.mp3"
}],
"typeExt": 4,
"videoUrl": "https://source1.qiaoxuesi.com/source/video/1hhd2li45sz/1660959767651_320_170.mp4"
}
}
}
}
}
}
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| spelling | String | 是 | 文本 |
| titleAudioUrl | String | 是 | 音频 |
| spellingGif | String | 是 | 拼音gif |
| imgUrl | String | 是 | 象形图片 |
| audioUrl | String | 是 | 顺口溜音频 |
| videoUrl | String | 是 | 拼音学习视频 |
| toneOrder | String | 是 | 音序 |
| typeExt | int | 是 | 拼音词典查询类别扩展字段 0:韵母;1.声母;3:拼读;4:整体认读 |
| tones | object | 否 | 四声调文本 |
tones字段说明
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| tone | String | 是 | 四声调文本 |
| toneAudioUrl | String | 是 | 四声调音频 |
| pin | String | 否 | 拼读 |
| pinAudioUrl | String | 否 | 拼读音频 |
| ci | String | 是 | 声调范字 |
| ciAudioUrl | String | 是 | 声调范字音频 |
| zi | String | 是 | 声调范词 |
| ziAudioUrl | String | 是 | 声调范词音频 |
拼读
{
"code": 200,
"done": true,
"globalId": "",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000633,
"operateState": 1011,
"parameters": {
"result": {
"dict": "cn_pinyin",
"dictType": "Turingkid",
"info": {
"allSpellings": ["xiāo", "xiáo", "xiǎo", "xiào"],
"audioUrl": "https://source1.qiaoxuesi.com/source/audio/64cvnxyyhx_1653477642277_normed00.mp3",
"spelling": "xiǎo",
"spellingType": "三拼音节",
"spellings": [{
"name": "x",
"type": "声母"
}, {
"name": "i",
"type": "韵母"
}, {
"name": "ɑo",
"type": "韵母"
}],
"toneNum": 3,
"toneOrder": "x",
"typeExt": 3,
"words": [{
"content": "筱"
}],
"phrases": [{
"content": "渺小"
}]
}
}
}
}
}
}
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| spelling | String | 是 | 文本 |
| spellingType | String | 是 | 拼读类别(整体认读⾳节/两拼⾳节/三拼⾳节) |
| audioUrl | String | 是 | 拼读音频 |
| toneOrder | String | 是 | 音序 |
| toneNum | int | 是 | 声调(0 代表轻声) |
| typeExt | int | 是 | 拼音词典查询类别扩展字段 0:韵母;1.声母;3:拼读;4:整体认读 |
| spellings | array | 是 | 拼读内容 |
| allSpellings | array | 是 | 四声调文本 |
| words | array | 是 | 范字 |
| phrases | array | 是 | 范词 |
spellings字段说明
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| name | String | 是 | 内容 |
| type | String | 是 | 类型 |
2. 通用词典查询
初始化请求查词技能时,当intent-code字段返回1000775,为查词结果;若intent-code为其他值,则未进入查词技能。建议设备端只展示查词结果。
方法
void queryCommonDict(String data, CommonDictParam param, TuringOSClientListener listener);
输入说明
| 参数 | 类型 | 说明 |
|---|---|---|
| data | String | 原始文本 |
| dictParam | CommonDictParam | 词典请求参数 |
| listener | TuringOSClientListener | 回调 |
CommonDictParam 说明
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| dictType | String | Y | 请求的词典类别;具体取值通过CommonDictParam获取,见下方 |
| sourceType | List | Y | 指定来源;null表示不过滤、返回所有来源,具体取值通过CommonDictParam获取,见下方 |
dictType 词典类别:
| 参数 | 说明 |
|---|---|
| CommonDictParam.DICT_TYPE_CN | 中文词典 |
| CommonDictParam.DICT_TYPE_EN_TRANS_CN | 英汉词典 |
| CommonDictParam.DICT_TYPE_CN_TRANS_EN | 汉英词典 |
| CommonDictParam.DICT_TYPE_POEM | 古诗文词典 |
| CommonDictParam.DICT_TYPE_PINYIN | 拼音词典 |
sourceType 词典来源:
| 参数 | 说明 |
|---|---|
| CommonDictParam.SOURCE_TYPE_TURING | 图灵词典 |
| CommonDictParam.SOURCE_TYPE_TURIN_GOWN | 图灵自研词典 |
| CommonDictParam.SOURCE_TYPE_TURING_PINYIN | 图灵拼音词典 |
| CommonDictParam.SOURCE_TYPE_TURING_KID_PY | 图灵儿童拼音词典 |
| CommonDictParam.SOURCE_TYPE_OXFORD_EN_TRANS_CN | 牛津英汉词典 |
| CommonDictParam.SOURCE_TYPE_SH_MODERN_CN | 上海辞书现代汉语词典 |
| CommonDictParam.SOURCE_TYPE_SH_ANCIENT_CN | 上海辞书古汉语词典 |
| CommonDictParam.SOURCE_TYPE_SH_CN_TRANS_EN | 上海辞书汉英词典 |
| CommonDictParam.SOURCE_TYPE_SH_STUDENT_CN | 上海辞书学生现代汉语词典 |
| CommonDictParam.SOURCE_TYPE_TURING_SVG | 图灵svg词典 |
请求示例
-
通用写法
```kotlin var sourceType = mutableListOf
() sourceType.add(CommonDictParam.SOURCE_TYPE_TURING) // 指定来源为图灵词典 sourceType.add(CommonDictParam.SOURCE_TYPE_SH_CN_TRANS_EN) // 指定来源为 上海辞书汉英词典 sourceType.add(CommonDictParam.SOURCE_TYPE_SH_MODERN_CN) // 指定来源为上海辞书现代汉语词典 var commonDictParam = CommonDictParam.Builder() .setDictType(CommonDictParam.DICT_TYPE_CN_TRANS_EN) // 请求汉英词典 .setSourceType(sourceType) // null 表示不过滤来源,返回所有来源,但不包括 SOURCE_TYPE_TURING_KID_PY .build() TuringOnlineDict.getInstance(this) .queryCommonDict(str, commonDictParam, object : TuringOSClientListener { override fun onResult( code: Int,result: String?,baseResp: BaseResp?,extension: String?) { Log.d(TAG, " 查询成功") } override fun onError(code: Int, msg: String?) { Log.d(TAG, " 查询失败 onError() called with: code = $code, msg = $msg") }}) ```
-
请求图灵儿童拼音词典 词典来源必须有且仅为CommonDictParam.SOURCE_TYPE_TURING_KID_PY。
kotlin var sourceType = mutableListOf<String>() sourceType.add(CommonDictParam.SOURCE_TYPE_TURING_KID_PY) // 指定来源为图灵儿童拼音词典 var commonDictParam = CommonDictParam.Builder() .setSourceType(sourceType) .setDictType(CommonDictParam.DICT_TYPE_PINYIN) // 词典类型必须为拼音词典 .build()
返回数据示例
中文词典
{
"globalId": "198866553209758003",
"intent": {
"code": 1000775,
"operateState": 1010,
"parameters": {
"result": [{
"sourceType": "turing",
"dictType": "cn",
"info": {
"dict": "cn_char",
"info": {
"radicals": "戈",
"synonyms": ["俺"],
"polyphone": [{
"pinyin": "wŏ",
"explanations": ["自称,自己,亦指自己一方"],
"audio": "http://universe-file-limit.turingapi.com/202302221126/4e2dcf7d88f991bfcaf44ef7455f754f/dict/cn_char/a7840870b6b64d138ac2ee556ddfe389.mp3",
"combineWords": [{
"type": "start",
"word": "我们"
}, {
"type": "start",
"word": "我辈"
}, {
"type": "end",
"word": "自我"
}, {
"type": "start",
"word": "我盈彼竭"
}]
}],
"strokesNumText": "共七画",
"structure": "左右结构",
"radicalsAudio": "",
"strokesNumAudio": "http://universe-file-limit.turingapi.com/202302221126/55c9441c11d9542506fbbe46e6e649d4/dict/fef15cad256e43a2949c21054e57c482.mp3",
"translations": [ ],
"antonyms": ["你", "敌"],
"oldWord": "我",
"strokesOrderText": "撇、横、竖钩、提、斜钩、撇、点",
"radicalsText": "戈字旁",
"strokesOrderAudio": "http://universe-file-limit.turingapi.com/202302221126/7220d9284ef4a64b1dde1928bfaaa045/dict/7289d5d5e215408aaefc52672db0294d.mp3",
"word": "我",
"strokesNum": 7,
"strokesOrder": "㇒ ㇐ ㇚ ㇀ ㇂ ㇒ ㇔"
}
}
}, {
"sourceType": "sh_ancientCn",
"dictType": "cn",
"info": {
"dict": "cn_ancient",
"info": [{
"headword": {
"name": "我",
"value": "我"
},
"definition": [{
"pinyin": "wǒ",
"section": [{
"sense": [{
"consultid": "",
"citation": ["《左传·庄公十年》:“春,齐师伐我。”(《曹刿论战》)"],
"id": 1,
"value": "第一人称代词。自称之词。也指称自己的一方。",
"example": [{
"type": "0",
"value": "如:敌疲我盈。"
}]
}],
"id": 1,
"order": "㊀"
}],
"id": 1
}],
"id": "XSGHY0011394"
}]
}
}, {
"sourceType": "svg",
"dictType": "cn",
"info": {
"dict": "svg",
"info": ["http://book-iot-cdn.turingos.cn/202302221156/5a00607fb95a07b327ba95ac34a04604/svg/svgs-color-change/25105.svg"]
}
}, {
"sourceType": "turingOwn",
"dictType": "cn",
"info": {
"dict": "cn_char",
"info": [{
"wuXing": "木",
"hzLevel": "一级字",
"hzBuShou": "",
"easyWriteError": "“我”第五笔是斜钩,不要和第一笔相连。",
"duoYinQubie": "",
"clearPinyin": "wo",
"buShouCode": "5Li/",
"jieShi": "<strong>①说话人自称。</strong><br />[我姓王,我告诉你]<br /><strong>②指自己。</strong><br />[自我批评,忘我工作]<br /><strong>③我们。</strong><br />[我国,我校,我方],代词。",
"jieShiMore": "<strong>〈代〉</strong><br /><strong>① 会意。</strong><br />从戈,从戈。“我”表示兵器。甲骨文字形象兵器形。本义:兵器。基本义:第一人称代词<br /><strong>② 自称;自己 </strong><br />我,施身自谓也。——《说文》<br />观我生。——《易·观卦》<br />万物皆备于我矣。——《孟子·尽心上》<br />又如:我行(我这里);我身(我自己;我这个人);我咱(我自。我,我自己);我见犹怜(形容女子容貌姿态美丽动人);我家(自己。我们家);我侬(方言。我)——按:上古时代,“吾”和“我”在语法上有分别。“吾”不用于动词后面作为宾语<br />今者吾丧我。——《庄子》<br /><strong>③</strong><strong>己方;己国 。</strong><br />如:敌我友;我每(我们);我伲(方言。我们);我曹(我们);我辈(我等,我们)<br /><strong>〈形〉</strong><br /><strong>① 自己的 。</strong><br />如:我生(我之行为);我仪(我的匹配)<br /><strong>② 表示亲密的 。</strong><br />如:我丈(对老人的亲切称呼);我老彭;我老叶;我东海<br /><strong>③ 向一边倾斜的,扭歪的 </strong><br />我,顷顿也。——《说文》。段玉裁注:“谓倾侧也。顷,头不正也。顿,下首也。故引申为顷侧之意。”<br /><strong>〈动〉</strong><br /><strong>①</strong><strong>杀</strong> <br />我伐用张。——《书·泰誓中》<br />我,古杀字。——《说文》<br />",
"bihua": 7,
"biShunGif": "https://filesnew.xhzapp.com/plugin/font/pic/159621augkuvxtow.gif?sign=370d6c8213f42726665e0a87377adae4&t=1684236389",
"fanTi": "",
"zimiAnalyse": "",
"hzName": "我",
"easyReadError": "“我”是三声。",
"sort": 101,
"duoYinLiju": "",
"bsBiHua": 1,
"bushou": "丿",
"fanYiCi": "敌,尔,人",
"shengDiao": 3,
"wuBi": "TRNT",
"pinyin": "wǒ",
"hzJieGou": "独体结构",
"zimiQuestion": "共食不饱",
"zuCi": ["我们", "我家", "自我", "我行", "忘我", "小我", "自我安慰", "舍我其谁", "黄假我", "赵我佩"],
"duYin": "https://turing.filesnew.xhzapp.com/plugin/font/audio/979126ba-5162-478a-899c-8dd76adaf13a.mp3?sign=0dece38760f53ee478057da37608ddb3&t=1684236389",
"biShun": "ノ一亅㇀㇂ノ丶",
"isDuoYin": 0,
"jinYiCi": "",
"bwBihua": 6
}]
}
}, {
"sourceType": "sh_modernCn",
"dictType": "cn",
"info": {
"dict": "cn_modern",
"info": [{
"headword": {
"name": "我",
"value": "我"
},
"definition": [{
"pinyin": "wǒ",
"section": [{
"sense": [{
"consultid": "0-0",
"citation": ["谢觉哉《忆叔衡同志》:“叔衡、梦周、凌波和我年纪差不多,同里同学同事,朋友而赛过兄弟。”", "郁达夫《无产阶级专政和无产阶级的文学》:“然而不幸我国的革命,在未熟的初期,就发现了这一种险象。”", "毛泽东《抗日游击战争的战略问题》:“从整个抗日战争看来,由于敌之战略进攻和外线作战,我处战略防御和内线作战地位,无疑我是处在敌之战略包围中。”"],
"id": 1,
"value": "代词。(1)称自己。(2)我们;我们的。(3)泛指自己的一方。"
}],
"id": 1,
"order": "㊀"
}],
"id": 1
}],
"id": "xiandaihanyudacidian-1073319"
}]
}
}, {
"sourceType": "sh_studentCn",
"dictType": "cn",
"info": {
"dict": "cn_student_modern",
"info": [{
"headword": {
"name": "我",
"value": "我"
},
"definition": [{
"pinyin": "wǒ",
"section": [{
"sense": [{
"consultid": "",
"id": 1,
"value": "说话人称自己或自己一方。",
"example": [{
"refer": "我",
"name": "▷",
"type": "0",
"value": "~军|~校"
}]
}, {
"consultid": "",
"id": 2,
"value": "自己。",
"example": [{
"refer": "我",
"name": "▷",
"type": "0",
"value": "自~介绍"
}]
}],
"id": 1,
"order": "㊀"
}],
"id": 1
}],
"id": "XSXDHYGF0016886"
}]
}
}]
}
},
"results": [{
"groupType": 0,
"resultType": "text",
"values": {
"text": "为您查到"
}
}]
}
英汉词典
{
"code": 200,
"done": true,
"globalId": "192917838572220003",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000775,
"operateState": 1010,
"parameters": {
"result": [{
"sourceType": "turing",
"dictType": "enTransCn",
"info": {
"dict": "en_word",
"info": {
"phoneticEn": "ˈæpl",
"phoneticUsAudio": "http://universe-file-limit.turingapi.com/202212151501/226e4020b7161d1ce2dfb43c8656dc69/dict/d6949d590f6f4437b3f017a2e114e0f6.mp3",
"isCore": true,
"vocabularyGroup": [ ],
"thirdSingular": "",
"adjective": "",
"antonyms": [ ],
"explanations": [{
"pos": "n",
"meaning": "苹果"
}, {
"pos": "n",
"meaning": "形似苹果的果实"
}, {
"pos": "n",
"meaning": "炸弹;手榴弹;(棒球的)球"
}, {
"pos": "n",
"meaning": "人,家伙"
}
],
"phoneticEnAudio": "http://universe-file-limit.turingapi.com/202212151501/cd770687f58940dcdb6eca70c1ea5971/dict/b16e87dea7ac48a986e689ea726a9beb.mp3",
"presentParticiple": "",
"synonyms": [{
"en": "ball",
"cn": "球"
}, {
"en": "malus pumila",
"cn": "苹果"
}
],
"sentencePattern": [ ],
"verb": "",
"superlativeDegree": "",
"referenceArticle": [ ],
"conjugates": [ ],
"examples": [{
"cnAudio": "",
"enAudio": "",
"en": "Cut the apple in half.",
"cn": "把苹果切成两半。"
}, {
"cnAudio": "",
"enAudio": "",
"en": "Have an apple of our own growth.",
"cn": "尝一尝我们自己种的苹果吧。"
}
],
"phoneticUs": "ˈæpl",
"explanationEn": "",
"pastParticiple": "",
"phrases": [{
"en": "apple of one's eyes",
"cn": "最珍贵的东西,最喜欢的人"
}
],
"preterit": "",
"nounPlurals": "apples",
"word": "apple",
"comparativeDegree": ""
}
}
}, {
"sourceType": "oxford_enTransCn",
"dictType": "enTransCn",
"info": [{
"pos-g": ["noun"],
"entry": [{
"pos-g": "noun",
"idm-gs": [{
"idm-g": {
"idm": ["the apple doesn’t fall/never falls far from the ˈtree"],
"sn-gs": [{
"sn-g": [{
"def": [{
"en": "a child usually behaves in a similar way to his or her parent(s)",
"cn": "有什么样的父母就有什么样的儿女;上行下效"
}
],
"label-g": ["saying, especially NAmE"]
}
]
}
]
}
}, {
"idm-g": {
"idm": ["the ˌapple of sb’s ˈeye"],
"sn-gs": [{
"sn-g": [{
"def": [{
"en": "a person or thing that is loved more than any other",
"cn": "心肝宝贝;掌上明珠"
}
],
"x-gs": [{
"en": "She is the apple of her father’s eye.",
"pron-gs": [{
"geo": "br",
"audio": "_apple#_gbs_1"
}, {
"geo": "n_am",
"audio": "_apple#_uss_1"
}
]
}
]
}
]
}
]
}
}, {
"idm-g": {
"idm": ["ˌapples and ˈoranges"],
"sn-gs": [{
"sn-g": [{
"def": [{
"en": "used to describe a situation in which two people or things are completely different from each other",
"cn": "苹果橘子两码事;截然不同"
}
],
"label-g": ["especially NAmE"],
"x-gs": [{
"en": "They really are apples and oranges.",
"pron-gs": [{
"geo": "br",
"audio": "_apple#_brs_2"
}, {
"geo": "n_am",
"audio": "_apple#_uss_2"
}
],
"cn": "他们确实是迥然不同。"
}, {
"en": "They are both great but you can’t compare apples and oranges.",
"pron-gs": [{
"geo": "br",
"audio": "_apple#_gbs_2"
}, {
"geo": "n_am",
"audio": "_apple#_ams_2"
}
],
"cn": "他们俩都很棒,但是截然不同,无法比较。"
}, {
"en": "It’s a totally different situation, it’s apples and oranges."
}
]
}
]
}
]
}
}, {
"xr-gs": ["-> more at American, rotten"]
}
],
"sn-gs": [{
"sn-g": [{
"xr-gs": ["SEE ALSO Adam’s apple, Big Apple, cooking apple, crab apple, eating apple,toffee apple"],
"def": [{
"en": "a round fruit with shiny red or green skin and firm white flesh",
"cn": "苹果"
}
],
"x-gs": [{
"en": "Peel and core the apples.",
"cn": "将这些苹果削皮、去核儿。"
}, {
"en": "an apple pie",
"cn": "苹果馅饼"
}, {
"en": "apple sauce",
"cn": "苹果沙司"
}, {
"en": "a garden with three apple trees",
"cn": "有三棵苹果树的花园"
}
]
}
]
}
]
}
],
"h": ["apple"],
"pron-gs": [{
"geo": "英",
"phon": "ˈæpl",
"audio": "apple#_gb_1"
}, {
"geo": "美",
"phon": "ˈæpl",
"audio": "apple#_us_1"
}
],
"Ox-aw": ["ox3000"],
"infl-g": ["apple", "apples"]
}
]
}
]
}
}
}
}
汉英词典
{
"code": 200,
"done": true,
"globalId": "192917975784171001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000775,
"operateState": 1010,
"parameters": {
"result": [{
"sourceType": "turing",
"dictType": "cnTransEn",
"info": {
"dict": "cn_transl_en",
"info": {
"items": [{
"star": 0,
"pos": "",
"reversedTranslation": "",
"translation": "beauty"
}
],
"word": "美丽"
}
}
}, {
"sourceType": "sh_cnTransEn",
"dictType": "cnTransEn",
"info": {
"dict": "cn_trans_en",
"info": [{
"headword": {
"name": "美丽",
"value": "美丽"
},
"definition": [{
"pinyin": "měi lì",
"section": [{
"sense": [{
"consultid": "0-0",
"id": 1,
"value": "beautiful:",
"example": [{
"refer": "美丽",
"type": "0",
"value": "~的花朵 beautiful flowers;"
}, {
"refer": "美丽",
"type": "0",
"value": "~富饶的国家 a beautiful and richly-endowed country;"
}, {
"refer": "美丽",
"type": "0",
"value": "观看一幅~的图画常使人心满意足。 Looking at a beautiful painting always gives one satisfaction."
}, {
"refer": "美丽",
"type": "0",
"value": "那是一个宁静~的夜晚。 It was a serenely beautiful night."
}, {
"refer": "美丽",
"type": "7",
"value": "\n<word>~百脉根 spectabiline;</word>\n<word>~栎木材 pasania;pasinia;</word>\n<word>~三齿稃 fluffgrass</word>\n"
}
]
}
],
"id": 1,
"order": "㊀"
}
],
"id": 1
}
],
"id": "HYDCD0104517"
}
]
}
}
]
}
}
}
}
古诗文词典
{
"code": 200,
"done": true,
"globalId": "192918136822220001",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000775,
"operateState": 1010,
"parameters": {
"result": [{
"sourceType": "turing",
"dictType": "poem",
"info": {
"dict": "cn_poem",
"info": {
"details": [{
"code": "ad607368f95e4f6e9f61b8795da2477f",
"notes": ["静夜思:静静的夜里,产生的思绪******"],
"star": 10000,
"sentences": [{
"sentence": "床前明月光,疑是地上霜。",
"notes": ["疑:好像。 ", "床:今传五种说法。"],
"explanations": "明亮的月光洒在窗户纸上,好像地上泛起了一层白霜。",
"audio": "http://universe-file-limit.turingapi.com/202212151506/857138412bdcb62edae84a4976a06910/dict/28d3b65ae8d94a788ddc9a19a3d332b3.mp3"
}, {
"sentence": "举头望明月,低头思故乡。",
"notes": ["举头:抬头。"],
"explanations": "我抬起头来,看那天窗外空中的明月,不由得低头沉思,想起远方的家乡。",
"audio": "http://universe-file-limit.turingapi.com/202212151506/34fcd4871d281cf5efa58249c2f4cb18/dict/e7e3a243393b4772a9bcc1a24f5b5a39.mp3"
}
],
"about": "李白(701年-762年) ,字太白******",
"type": 1,
"content": "床前明月光,疑是地上霜。\n举头望明月,低头思故乡。",
"tags": ["唐诗三百首", "小学古诗", "月亮", "思乡", "景色"],
"dynasty": "唐代",
"name": "静夜思",
"explanations": "明亮的月光洒在窗户纸上,好像地上泛起了一层白霜。\n我抬起头来,看那天窗外空中的明月,不由得低头沉思,想起远方的家乡。",
"poet": "李白",
"audio": "http://universe-file-limit.turingapi.com/202212151506/d14865d36699dd7a0c2c9e4d1fb02236/dict/eafc2df9e019437fa9c0ad86406db4e5.mp3"
}
],
"type": "title"
}
}
}, {
"sourceType": "turingOwn",
"dictType": "poem",
"info": {
"dict": "cn_poem",
"info": [{
"orgTextDef": "床前明月光,疑是地上霜。\r\n举头望明月,低头思故乡。",
"author": "李白",
"id": 118,
"title": "静夜思",
"years": "唐代"
}, {
"orgTextDef": "举头见明月,万古月不老。\r\n月圆人亦圆,人月应同好。\r\n",
"author": "唐文凤",
"id": 529316,
"title": "静夜思",
"years": "明代"
}, {
"orgTextDef": "静夜思,一思肠百转。\r\n啼螀当户听不闻,明月在庭看不见。\r\n方将入海剸猛蛟,复欲度岭邀飞猱。",
"author": "刘基",
"id": 112818,
"title": "静夜思",
"years": "明代"
}, {
"orgTextDef": "省略******",
"author": "周是修",
"id": 112820,
"title": "静夜思",
"years": "明代"
}, {
"orgTextDef": "省略******",
"author": "胡奎",
"id": 112821,
"title": "静夜思",
"years": "元代"
}, {
"orgTextDef": "秋月入我牖,秋风拂我床。\n不作风月客,笑傲飞羽觞。\n秋风拂我床,秋月入我牖。\n一室四海心,展转思量久。\n",
"author": "弘历",
"id": 112822,
"title": "静夜思",
"years": "清代"
}, {
"orgTextDef": "中夜起徘徊,天空月如洗。\n为忆闺中人,渺渺湘江水。\n",
"author": "郑惟广",
"id": 112823,
"title": "静夜思",
"years": "明代"
}, {
"orgTextDef": "省略******。",
"author": "于谦",
"id": 512978,
"title": "静夜思",
"years": "明代"
}
]
}
}
]
}
}
}
}
返回参数说明
| 参数 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | int | Y | 状态code;参考状态code列表 |
| globalId | String | Y | 请求唯一标识,用于排查日志 |
| done | boolean | Y | 单轮请求是否结束false为单轮请求未结束(云端还会返回结果)true为已结束(可进行下次请求或关闭连接) |
| message | String | Y | code对应的说明 |
| nlpResponse | Json | Y | nlp相关回复信息 |
nlpResponse - Intent字段说明
| 参数 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | int | Y | 输出应用code |
| operateState | int | Y | 应用状态 |
| parameters | Json | Y | 识别结果参数 |
Intent - parameters - result 字段说明
| 参数 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| sourceType | String | Y | 输出的词典类型 1:turing 图灵词典; 2:turingOwn 图灵自研词典; 3:oxford_enTransCn 牛津英汉词典; 4:sh_modernCn 上海辞书现代汉语词典; 5: sh_ancientCn 上海辞书古汉语词典; 6: sh_cnTransEn 上海辞书汉英词典 ; 7:sh_StudentCn 上海辞书学生现代汉语词典; 8:turing_pinyin 图灵拼音词典 |
| dictType | String | Y | 请求的词典类型 1:cn 中文词典; 2:enTransCn 英汉词典; 3:cnTransEn 汉英词典; 4:poem 古诗文词典 5.pinyin 拼音词典 |
| info | Json | Y | 查词结果详细数据,根据各词典类型查找对应的参数说明 |
| info/dict | String | Y | 内部词典请求得到的内部词典类型 |
图灵词典
1.汉字
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| word | String | Y | 汉字 |
| strokesOrder | String | Y | 笔顺 |
| strokesOrderText | String | Y | 笔顺文本 |
| strokesOrderAudio | String | Y | 笔顺音频 |
| strokesNum | String | Y | 笔画数 |
| strokesNumText | String | Y | 笔画数文本 |
| strokesNumAudio | String | Y | 笔画数音频 |
| radicals | String | Y | 偏旁 |
| radicalsText | String | Y | 偏旁文本 |
| radicalsAudio | String | Y | 偏旁音频 |
| translations | Array | Y | 汉译英 |
| structure | String | Y | 结构 |
| copy | Array | Y | 描红 |
| polyphone | Array | Y | 多音字 |
| synonyms | Array | Y | 近义词 |
| antonyms | Array | Y | 反义词 |
polyphone字段说明
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| pinyin | String | Y | 多音字读音 |
| audio | String | Y | 多音字音频 |
| combineWords | Array | Y | 组词 |
| explanations | Array | Y | 释义 |
combineWords字段说明
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| type | String | Y | 字在词中的位置(start、middle、end) |
| word | Array | Y | 组词 |
2. 成语
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| pinyin | String | Y | 拼音 |
| antonyms | Array | Y | 反义词 |
| synonyms | Array | Y | 近义词 |
| derivation | String | Y | 出处 |
| word | String | Y | 成语 |
| explanations | String | Y | 释义 |
| translations | Array | Y | 汉译英 |
| copy | Array | Y | 描红 |
| wordAudio | String | Y | 内容音频 |
| examples | Array | Y | 双语例句 |
examples字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| en | String | N | 英文 |
| cn | String | N | 中文 |
3. 汉词
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| polyphone | Array | Y | 读音相关数据 |
| word | String | Y | 词语 |
| copy | Array | Y | 描红 |
| wordAudio | String | Y | 内容音频 |
polyphone 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| pinyin | String | Y | 拼音 |
| examples | Array | Y | 双语例句 |
| antonyms | Array | Y | 反义词 |
| synonyms | Array | Y | 近义词 |
| explanations | Array | Y | 释义 |
| translations | String | Y | 汉译英 |
| audio | String | Y | 多音字音频 |
examples字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| en | String | N | 英文 |
| cn | String | N | 中文 |
4. 古诗词
古诗词词典类型,有以下几种输出逻辑,可根据type字段进行区分:
| 类别 | type | 说明 |
|---|---|---|
| 标题 | title | 当完整输入标题,且只有唯一匹配结果时,输出诗词全部内容,如“锦瑟”、“一剪梅中秋无月;当有多条匹配结果时,输出相关标题列表,如“春晓”、“登鹳雀楼”; |
| 标题关键词 | keywords | 当输入标题为关键词,或有多个匹配结果时,输出相关标题列表,如“密州出猎”、“亥杂诗”等; |
| 单句诗词 | sentence | 当输入单句时,输出单句匹配结果,如“春眠不觉晓”; |
| 多句诗词 | multi\_sentence | 当输入多句诗词时,输出诗词上下句内容,如”疑是地上霜。举头“、“黄河入海流。欲穷千里目”; |
古诗词 - 标题(唯一结果)
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| details | Array | Y | 古诗词内容说明 |
| type | String | Y | 古诗词输出内容类型(详见上文词典类型说明) |
| isWhole | Bool | Y | 返回全诗结果 true为已返回全部诗词 false为未返回全部诗词 |
当isWhole字段返回结果为false时,可根据唯一编码(code)请求《古诗词全诗获取接口文档》获取全诗。
details 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | String | Y | 全诗唯一编码 |
| tags | Array | N | 标签 |
| poet | String | N | 诗人 |
| notes | Array | N | 注释 |
| wordAudio | String | N | 全诗音频链接 |
| name | String | Y | 诗名 |
| dynasty | String | N | 朝代 |
| content | String | Y | 全诗原文 |
| explanations | Array | N | 全诗白话文 |
| appreciation | String | N | 全诗赏析 |
| about | String | N | 其他相关信息 |
| sentences | Array | N | 单句内容说明 |
sentences 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| explanations | Array | N | 单句白话文 |
| notes | Array | N | 单句注释 |
| audio | String | N | 单句音频链接 |
| sentence | String | N | 单句内容 |
古诗词 - 标题(多个结果)
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | String | Y | 全诗唯一编码 |
| dynasty | String | N | 朝代 |
| name | String | Y | 诗名 |
| poet | String | N | 诗人 |
| content | String | Y | 首句原文 |
| wordAudio | String | Y | 首句原文音频 |
古诗词 - 标题关键词
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | String | Y | 全诗唯一编码 |
| tags | Array | N | 标签 |
| poet | String | N | 诗人 |
| notes | Array | N | 注释 |
| wordAudio | String | N | 全诗音频链接 |
| name | String | Y | 诗名 |
| dynasty | String | N | 朝代 |
| content | String | Y | 全诗原文 |
| explanations | Array | N | 全诗白话文 |
| appreciation | String | N | 全诗赏析 |
| about | String | N | 其他相关信息 |
| sentences | Array | N | 单句内容说明 |
sentences 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| explanations | Array | N | 单句白话文 |
| notes | Array | N | 单句注释 |
| audio | String | N | 单句音频链接 |
| sentence | String | N | 单句内容 |
古诗词 - 单句诗词
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| explanations | Array | N | 单句白话文 |
| notes | Array | N | 单句注释 |
| wordAudio | String | N | 单句音频链接 |
| sentence | String | N | 单句内容 |
| code | Int | N | 全诗唯一编码 |
古诗词 - 多句诗词
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| code | String | Y | 全诗唯一编码 |
| tags | Array | N | 标签 |
| poet | String | N | 诗人 |
| notes | Array | N | 注释 |
| wordAudio | String | N | 全诗音频链接 |
| name | String | Y | 诗名 |
| dynasty | String | N | 朝代 |
| content | String | Y | 全诗原文 |
| explanations | Array | N | 全诗白话文 |
| appreciation | String | N | 全诗赏析 |
| about | String | N | 其他相关信息 |
| sentences | Array | N | 单句内容说明 |
sentences 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| explanations | Array | N | 单句白话文 |
| notes | Array | N | 单句注释 |
| audio | String | N | 单句音频链接 |
| sentence | String | N | 单句内容 |
5. 历史诗人名
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| pinyin | String | Y | 拼音 |
| name | String | Y | 人名名称 |
| wordAudio | String | Y | 内容音频 |
| copy | Array | Y | 描红 |
| introduction | Array | Y | 生平简介 |
6. 英文单词
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| adjective | String | Y | 形容词 |
| comparativeDegree | String | Y | 比较级 |
| nounPlurals | String | Y | 名词复数 |
| pastParticiple | String | Y | 过去分词 |
| phoneticEn | String | Y | 英音标 |
| phoneticUs | String | Y | 美音标 |
| phrases | Array | Y | 短语 |
| presentParticiple | String | Y | 现在分词 |
| preterit | String | Y | 过去式 |
| superlativeDegree | String | Y | 最高级 |
| sentencePattern | Array | Y | 常用句型 |
| thirdSingular | String | Y | 第三人称单数 |
| verb | String | Y | 动词 |
| referenceArticle | Array | Y | 引文 |
| phoneticEnAudio | String | Y | 英音标音频 |
| wordAudio | String | Y | 内容音频 |
| synonyms | Array | Y | 近义词 |
| vocabularyGroup | Array | Y | 词汇搭配 |
| examples | Array | Y | 双语例句 |
| antonyms | Array | Y | 反义词 |
| explanations | Array | Y | 英译汉 |
| word | String | Y | 内容 |
| phoneticUsAudio | String | Y | 美音标音频 |
| explanationEn | String | Y | 英英释义 |
examples/vocabularyGroup/apastParticiplentonyms 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| en | String | N | 英文 |
| cn | String | N | 中文 |
| cnAudio | String | N | 中文音频 |
| enAudio | String | N | 英文音频 |
explanations 字段说明
| 字段 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| pos | String | N | 词性 |
| meaning | String | N | 词义 |
7. 英文短语
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| examples | Array | Y | 双语例句 |
| phrase | String | Y | 短语内容 |
| explanations | Array | Y | 释义 |
examples字段说明
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| en | String | Y | 英文 |
| cn | String | Y | 中文 |
| enAudio | String | Y | 英文音频 |
| cnAudio | String | Y | 中文音频 |
图灵自研词典
1. 汉字
| 参数 | 类型 | 是否必返 | 描述 |
|---|---|---|---|
| dict | String | 是 | 词典查询的字的类型 |
| wuXing | String | 否 | 五行 |
| hzLevel | String | 否 | 汉字等级 |
| hzBuShou | String | 否 | 去部首后字 |
| easyWriteError | String | 否 | 易写错 |
| duoYinQubie | String | 否 | 多音字区别 |
| clearPinyin | String | 否 | 去声调拼音 |
| buShouCode | String | 否 | 部首编码 |
| jieShi | String | 否 | 解释 |
| jieShiMore | String | 否 | 详细解释 |
| bihua | int | 否 | 笔画 |
| biShunGif | String | 否 | 汉字默认笔顺图片 |
| fanTi | String | 否 | 繁体 |
| zimiAnalyse | String | 否 | 字谜分析 |
| hzName | String | 否 | 字 |
| easyReadError | String | 否 | 易读错 |
| duoYinLiju | String | 否 | 多音例句 |
| bsBiHua | int | 否 | 部首笔画 |
| bushou | String | 否 | 部首 |
| fanYiCi | String | 否 | 反义词 |
| wuBi | String | 否 | 五笔 |
| pinyin | String | 否 | 拼音 |
| hzJieGou | String | 否 | 汉字结构 |
| zimiQuestion | String | 否 | 字谜问题 |
| duYin | String | 否 | 读音,Mp3文件 |
| biShun | String | 否 | 笔顺 |
| isDuoYin | String | 否 | 是否是多音字1是0否 |
| jinYiCi | String | 否 | 近义词 |
| bwBihua | int | 否 | 除部首外笔画 |
| sort | int | 否 | 高频排序 |
| zuCi | array | 否 | 组词 |
2. 词语
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| dict | String | 是 | 词典查询的词的类型 |
| ciYu | String | 否 | 词语 |
| partType | String | 否 | 词性 |
| fanYiCi | String | 否 | 反义词 |
| pinyin | String | 否 | 拼音 |
| clearPinyin | String | 否 | 去声调拼音 |
| jieShi | String | 否 | 解释 |
| jieShiMore | String | 否 | 详细解释 |
| audio | String | 否 | 读音链接 |
| jinYiCi | String | 否 | 近义词 |
| isDuoYin | int | 否 | 是否是多音字1是0否 |
| chuChu | String | 否 | 出处 |
| sort | int | 否 | 高频排序 |
| miaoHong | array | 否 | 描红 |
| liJu | array | 否 | 例句 |
| source | String | 否 | 数据源 |
| sourceType | String | 否 | 数据类型;1-教材;2-鲤鱼辅导 |
| content | String | 否 | 例句内容 |
3. 成语
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| dict | String | 是 | 词典查询的成语的类型 |
| chengYu | String | 否 | 成语 |
| jieShi | String | 否 | 解析 |
| jieShiMore | String | 否 | 详细解析 |
| jieLong | String | 否 | 接龙 |
| pinYin | String | 否 | 拼音 |
| dianGu | String | 否 | 典故 |
| audio | String | 否 | 读音链接 |
| nianDai | String | 否 | 年代 |
| yongFa | int | 否 | 用法 |
| bianXing | String | 否 | 辨形 |
| zhengYin | String | 否 | 正音 |
| fanTi | String | 否 | 繁体 |
| fanYiCi | String | 否 | 反义词 |
| zuiMiaoShu | String | 否 | 最描述 |
| lookPic | String | 否 | 看图猜成语 |
| clearPinYin | String | 否 | 去拼音 |
| bianXi | String | 否 | 辨析 |
| ganQingSeCai | String | 否 | 感情色彩 |
| jinYiCi | String | 否 | 近义词 |
| changYong | String | 否 | 常用 |
| chuChu | String | 否 | 出处 |
| jieGou | String | 否 | 结构 |
| videoCover | String | 否 | 视频封面 |
| video | String | 否 | 视频 |
| sort | int | 否 | 高频排序 |
| miaoHong | array | 否 | 描红 |
| liJu | array | 否 | 例句 |
| source | String | 否 | 数据源 |
| sourceType | String | 否 | 数据类型;1-教材;2-鲤鱼辅导 |
| content | String | 否 | 例句内容 |
4. 人名
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| dict | String | 是 | 词典查询的人物的类型 |
| pinyin | String | 否 | 拼音 |
| image | String | 否 | 诗人图片 |
| description | int | 否 | 描述 |
| years | String | 否 | 年代 |
| introduction | String | 否 | 介绍 |
5. 古诗-仅支持标题查询
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| dict | String | 是 | 词典查询的古诗的类型 |
| orgTextDef | String | 否 | 原文 |
| author | String | 否 | 作者 |
| id | int | 否 | 古诗id |
| title | String | 否 | 诗名 |
| years | String | 否 | 年代 |
图灵拼音词典
1. 声母
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| type | String | 是 | 拼音词典查询类别-声母 shengmu |
| typeExt | String | 是 | 拼音词典查询类别扩展字段 1.声母;0:韵母;3:拼读;4:整体认读 |
| letter | String | 是 | 声母 |
| letterAudio | String | 是 | 声母读音 |
| pronMethod | String | 是 | 发音方法 |
| pronAudio | String | 是 | 发音方法音频 |
| spell | String | 是 | 拼读内容 |
| copy | Array | 否 | 字段的svg图像链接 |
2. 韵母
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| type | String | 是 | 拼音词典查询类别-韵母 yunmu |
| typeExt | String | 是 | 拼音词典查询类别扩展字段 1.声母;0:韵母;3:拼读;4:整体认读 |
| letter | String | 是 | 韵母 |
| letterAudio | String | 是 | 韵母读音 |
| pronMethod | String | 是 | 发音方法 |
| pronAudio | String | 是 | 发音方法音频 |
| spell | String | 是 | 拼读内容 |
| syllable | String | 是 | 音节 |
| syllableAudio | String | 是 | 音节音频 |
| subType | String | 是 | 韵母类别:1(单韵母),2(复韵母),3(特殊元音韵母),4(鼻韵母) |
| copy | Array | 否 | 字段的svg图像链接 |
3. 拼读
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| type | String | 是 | 拼音词典查询类别-拼读:pindu |
| typeExt | String | 是 | 拼音词典查询类别扩展字段 1.声母;0:韵母;3:拼读;4:整体认读 |
| letter | String | 是 | 拼读拼音 |
| letterAudio | String | 是 | 拼读拼音音频 |
| words | Array | 是 | 拼音查字 |
| copy | Array | 否 | 字段的svg图像链接 |
words字段说明
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| word | String | 否 | 字 |
| phrase | String | 否 | 字组词 |
| phraseAudio | String | 否 | 字组词音频 |
4. 整体认读
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| type | String | 是 | 拼音词典查询类别-整体认读:zhengtirendu |
| typeExt | String | 是 | 拼音词典查询类别扩展字段 1.声母;0:韵母;3:拼读;4:整体认读 |
| letter | String | 是 | 整体认读拼音 |
| letterAudio | String | 是 | 拼音音频 |
| pronMethod | String | 是 | 发音方法 |
| pronAudio | String | 是 | 发音方法音频 |
| spell | String | 是 | 拼读内容 |
| syllable | String | 是 | 音节 |
| syllableAudio | String | 是 | 音节音频 |
| copy | Array | 否 | 字段的svg图像链接 |
SVG 描红词典
{
"sourceType": "svg",
"dictType": "cn",
"info": {
"dict": "svg",
"info": [
"http://book-iot-cdn.turingos.cn/202302221203/9e89701570af9d91bd08a77ad26d257b/svg/svgs-color-change/26202.svg",
"http://book-iot-cdn.turingos.cn/202302221203/f063e7328ba4dc7a4143b06a068cf180/svg/svgs-color-change/23433.svg"
]
}
}
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| info | List | 否 | 描红 |
牛津英汉词典
| 参数 | 类型 | 是否必返 | 说明 |
|---|---|---|---|
| h | string | Y | 单词文本 |
| infl-g | array | Y | 单词所有变形 |
| pos-g | array | Y | 单词所有词性 |
| label-g | array | Y | 单词标识,包括语体、地理、学科标识 |
| gram-g | string | Y | 单词的语法说明 |
| vp-gs | array | Y | 单词变形的具体说明 |
| v-gs | array | Y | 单词的变体 |
| Ox-aw | array | Y | 用于说明单词是否属于牛津3000词或学术用词 |
| anagram | array | Y | 原词的其他变形词 |
| or-wd | array | Y | 原词文本 |
| pron-gs | array | N | 单词音标及发音 |
| ...geo | string | N | 用于说明是英式还是美式发音 |
| ...phon | string | N | 单词音标 |
| ...audio | string | N | 单词发音 |
| entry | array | N | 单词详细信息 |
| ...pos-g | string | N | 单词的某个词性 |
| ...sn-gs | array | N | 该词性下的单词释义及例句 |
| ......shcut | array | N | 用于说明该单词的释义的类别或范围 |
| .........en | string | N | 英文说明 |
| .........cn | string | N | 中文说明 |
| ......sn-g | array | N | 单词的一条释义 |
| .........gram-g | string | N | 单词某个释义的语法 |
| .........cf | array | N | 单词在某个或某个释义的用法 |
| .........dis-g | array | N | 对在该释义在的用法进一步说明 |
| .........v-gs | array | N | 单词在某个释义下的变体 |
| .........xr-gs | array | N | 释义的参见项 |
| .........label-g | array | N | 释义的语体、地理、学科标识 |
| .........def | array | N | 释义 |
| ............en | string | N | 英文释义 |
| ............cn | string | N | 中文释义 |
| .........x-gs | array | N | 这几种用法的例句 |
| ............cf | array | N | 单词在某个例句中的用法 |
| ............en | string | N | 英文例句 |
| ............cn | string | N | 例句中文翻译 |
| ............pron-gs | array | N | 例句发音 |
| ...............geo | string | N | 用于说明是英式还是美式发音 |
| ...............audio | string | N | 例句音频 |
| ...pv-gs | array | N | 该词性下的短语动词组 |
| ......pv | array | N | 短语动词 |
| ......v-gs | array | N | 短语的变体 |
| ......sn-gs | array | N | 该短语动词的解释及例句 |
| .........v-gs | array | N | 在某个释义下的变体 |
| .........xr-gs | array | N | 短语在某个释义下的参见项 |
| .........label-g | array | N | 短语标识,用于说明其语体、地理、学科 |
| .........def | array | N | 该短语动词的解释 |
| ............en | string | N | 英文解释 |
| ............cn | string | N | 中文解释 |
| .........x-gs | array | N | 该短语动词的例句 |
| ............label-g | array | N | 该句子的地理、语体、学科标识 |
| ............en | string | N | 英文例句 |
| ............cn | string | N | 例句的中文翻译 |
| ............pron-gs | array | N | 例句的发音 |
| ...............geo | string | N | 用于说明是英式还是美式发音 |
| ...............audio | string | N | 例句音频 |
| ...idm-gs | array | N | 该词性下的习语组 |
| ......xr-gs | array | N | 习语的参见项 |
| .........idm-g | array | N | 习语的信息 |
| ............idm | array | N | 习语 |
| ............v-gs | array | N | 习语的变体 |
| ............sn-gs | array | N | 习语的解释和例句 |
| ...............def | array | N | 习语的解释 |
| ..................en | string | N | 英文解释 |
| ..................cn | string | N | 中文解释 |
| ...............x-gs | array | N | 习语的例句 |
| ..................en | string | N | 英文例句 |
| ..................cn | string | N | 例句的中文翻译 |
| ..................pron-gs | array | N | 例句的发音 |
| .....................geo | string | N | 用于说明是英式还是美式发音 |
| .....................audio | string | N | 例句音频 |
| ...dr-gs | array | N | 派生词信息 |
| ......dr | array | N | 派生词 |
| ......v-gs | array | N | 派生词变体 |
| ......pos-g | array | N | 派生词词性 |
| ......infl-g | array | N | 派生词的变形 |
| ......pron-gs | array | N | 派生词音标及发音 |
| .........geo | string | N | 用于说明是英式还是美式发音 |
| .........phon | string | N | 派生词的音标 |
| .........audio | string | N | 派生词的发音 |
| ......sn-gs | array | N | 派生词的其他信息 |
| .........gram-g | string | N | 派生词的语法说明 |
| .........xr-gs | array | N | 习语的参见项 |
| .........x-gs | array | N | 派生词的例句 |
| ............cf | array | N | 派生词在某个例句中的用法 |
| ............label-g | array | N | 派生词的语体、地理、学科标识 |
| ............en | string | N | 英文例句 |
| ............cn | string | N | 例句的中文翻译 |
| ............pron-gs | array | N | 例句的发音 |
| ...............geo | string | N | 用于说明是英式还是美式发音 |
| ...............audio | string | N | 例句音频 |
上海辞书词典
| 参数 | 类型 | 是否可缺省 | 描述 |
|---|---|---|---|
| id | string | 否 | 唯一编号 |
| headword | HEADWORD | 否 | 词头详情 |
| definition | list | 否 | 释义详情 |
headword字段说明
| 参数 | 类型 | 是否可缺省 | 描述 |
|---|---|---|---|
| value | string | 否 | 词头文本 |
| name | string | 否 | 词头名称 |
definition字段说明
| 参数 | 类型 | 是否可缺省 | 描述 |
|---|---|---|---|
| id | int | 否 | definition编号 |
| pinyin | string | 否 | 拼音 |
| duyin | string | 是 | 旧读、又读信息 |
| section | array | 否 | 段落详情 |
section字段说明
| 参数 | 类型 | 是否可缺省 | 描述 |
|---|---|---|---|
| id | string | 否 | section编号,数字编号表示,由1开始递增 |
| order | string | 否 | section编号,繁异体顺序编号,用㊀㊁㊂…表示 |
| duyin | string | 是 | 释义详情 |
| value | string | 是 | 段落释义类型,例如:“方言” |
| sense | list | 否 | 释义详情 |
| consult | CONSULT | 是 | 参阅详情 |
| tradition | list | 是 | 繁体元素 |
| variantion | list | 是 | 异体元素 |
sense字段说明
| 参数 | 类型 | 是否可缺省 | 描述 |
|---|---|---|---|
| id | string | 否 | sense编号,数字编号表示,由1开始递增 |
| consultid | string | 否 | 释义唯一编号 |
| value | string | 是 | 释义详情 |
| citation | list | 是 | 释义出处 |
| example | list | 是 | 释义举例 |
| duyin | string | 是 | 旧读、又读信息 |
| consult | list | 是 | 参阅信息 |
example字段说明
| 参数 | 类型 | 是否可缺省 | 描述 |
|---|---|---|---|
| refer | string | 是 | 当举例为词时,取值为该举例的词头,用于替换例证中的“~” |
| type | string | 否 | 0:不明确;1:例词、组词;2:例句、造句;3:同义;4:反义;5:连用;6:变式;7:短语搭配;8:比喻;9:谚语;10:格言;11:专名;12:构词;13:联想;14:套语;15:近义 |
| value | string | 否 | 例证 |
consult字段说明
| 参数 | 类型 | 是否可缺省 | 描述 |
|---|---|---|---|
| type | string | 是 | more:见;oneof:之一;abbreviation:简称;ancient:古称:code:隐语;common:通称;complete:全称;equivalent:相当于;financial:大写;itis:即;merged:合称;modern:今称:reference:参见;old:旧称;opposite:相对;original:本作;popular:俗称;referto:详;sameas:同;translation:也译作;also:又称;symmetry:对称;synonym:同;other:其他 |
| value | string | 否 | 参阅内容 |
| consultWord | list | 否 | 参阅条目 |
图灵儿童拼音词典
声母
{
"code": 200,
"done": true,
"globalId": "",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000775,
"operateState": 1010,
"parameters": {
"result": [{
"sourceType": "Turingkid",
"dictType": "pinyin",
"info": {
"dict": "cn_pinyin",
"info": {
"audioUrl": "https://source1.qiaoxuesi.com/source/audio/219unmq8bh7/1669191192091_normed00.mp3",
"imgUrl": "https://source1.qiaoxuesi.com/source/img/1663060805006.png",
"spelling": "m",
"spellingGif": "https://source1.qiaoxuesi.com/xuepinyin/gif/12t7akpfisu1662109726190.gif",
"titleAudioUrl": "https://source1.qiaoxuesi.com/source/audio/bc8dac3cvv/1668678699003_normed00.mp3",
"typeExt": 1,
"videoUrl": "https://source1.qiaoxuesi.com/source/video/u1q1o7a2rt/1660918424457_320_170.mp4"
}
}
}]
}
}
}
}
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| spelling | String | 是 | 文本 |
| titleAudioUrl | String | 是 | 音频 |
| spellingGif | String | 是 | 拼音gif |
| imgUrl | String | 是 | 象形图片 |
| audioUrl | String | 是 | 顺口溜音频 |
| videoUrl | String | 是 | 拼音学习视频 |
| videoCoverUrl | String | 是 | 拼音学习视频封面图 |
| typeExt | int | 是 | 拼音词典查询类别扩展字段 0:韵母;1.声母;3:拼读;4:整体认读 |
韵母
{
"code": 200,
"done": true,
"globalId": "",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000775,
"operateState": 1010,
"parameters": {
"result": [{
"sourceType": "Turingkid",
"dictType": "pinyin",
"info": {
"audioUrl": "https://source1.qiaoxuesi.com/xuepinyin/audio/137dlzvy2xj1652695957079_normed00.mp3",
"imgUrl": "https://source1.qiaoxuesi.com/source/img/1663060819091.png",
"spelling": "ɑi",
"spellingGif": "https://source1.qiaoxuesi.com/xuepinyin/gif/1layjq4ney1662109709706.gif",
"titleAudioUrl": "https://source1.qiaoxuesi.com/xuepinyin/audio/v4psa1uugf/1663758139055_normed00.mp3",
"toneOrder": "a",
"tones": [{
"ci": "开心",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-e9e1a24dbd934da5988b6dde5f48be3b_normed00.mp3",
"pin": "k-ɑi",
"pinAudioUrl": "https://source1.qiaoxuesi.com/source/audio/295f7c7ebkl_1653477636373_normed00.mp3",
"tone": "āi",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/uu2xtp4uto/1662355157516_normed00.mp3",
"zi": "开",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/295f7c7ebkl_1653477636373_normed00.mp3"
}, {
"ci": "白天",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-24cf6d90de594adb9efd67935d8e1765_normed00.mp3",
"pin": "b-ɑi",
"pinAudioUrl": "https://source1.qiaoxuesi.com/source/audio/289ipwqxe8h_1653477298257_normed00.mp3",
"tone": "ái",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/2o47sxl2b9c/1651809615488_normed00.mp3",
"zi": "白",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/289ipwqxe8h_1653477298257_normed00.mp3"
}, {
"ci": "改正",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-c2987747a8d247c4951e155714d0dacc_normed00.mp3",
"pin": "g-ɑi",
"pinAudioUrl": "https://source1.qiaoxuesi.com/source/audio/1fwn86ag818_1653477510828_normed00.mp3",
"tone": "ǎi",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/1oufr3jcjt/1651809633609_normed00.mp3",
"zi": "改",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/1fwn86ag818_1653477510828_normed00.mp3"
}, {
"ci": "太阳",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-097b7e0655fc4a56b995f521f58dcbc1_normed00.mp3",
"pin": "t-ɑi",
"pinAudioUrl": "https://source1.qiaoxuesi.com/source/audio/sxz38nwx0_1653478156900_normed00.mp3",
"tone": "ài",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/6pmiiu6q4w/1651820482512_normed00.m4a",
"zi": "太",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/sxz38nwx0_1653478156900_normed00.mp3"
}],
"typeExt": 0,
"videoUrl": "https://source1.qiaoxuesi.com/source/video/1vuw1z4a70a/1662347551226_320_170.mp4"
}
}]
}
}
}
}
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| spelling | String | 是 | 文本 |
| titleAudioUrl | String | 是 | 音频 |
| spellingGif | String | 是 | 拼音gif |
| imgUrl | String | 是 | 象形图片 |
| audioUrl | String | 是 | 顺口溜音频 |
| videoUrl | String | 是 | 拼音学习视频 |
| toneOrder | String | 是 | 音序 |
| typeExt | int | 是 | 拼音词典查询类别扩展字段 0:韵母;1.声母;3:拼读;4:整体认读 |
| tones | object | 否 | 四声调文本 |
tones字段说明
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| tone | String | 是 | 四声调文本 |
| toneAudioUrl | String | 是 | 四声调音频 |
| pin | String | 否 | 拼读 |
| pinAudioUrl | String | 否 | 拼读音频 |
| ci | String | 是 | 声调范字 |
| ciAudioUrl | String | 是 | 声调范字音频 |
| zi | String | 是 | 声调范词 |
| ziAudioUrl | String | 是 | 声调范词音频 |
整体认读
{
"code": 200,
"done": true,
"globalId": "",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000775,
"operateState": 1010,
"parameters": {
"result": [{
"sourceType": "Turingkid",
"dictType": "pinyin",
"info": {
"audioUrl": "https://source1.qiaoxuesi.com/xuepinyin/audio/dpaxi5xlni/1663758190814_normed00.mp3",
"imgUrl": "https://source1.qiaoxuesi.com/source/img/1663060965077.png",
"spelling": "zhi",
"spellingGif": "https://source1.qiaoxuesi.com/xuepinyin/gif/khvydd7x7z1662109746415.gif",
"titleAudioUrl": "https://source1.qiaoxuesi.com/xuepinyin/audio/dpaxi5xlni/1663758190814_normed00.mp3",
"toneOrder": "z",
"tones": [{
"ci": "知识",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-06e416086e8a42a3a90f1a19f3fcdf3d_normed00.mp3",
"tone": "zhī",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/hxpzagzwph/1651815004245_normed00.mp3",
"zi": "知",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/15nzurq9xq0_1653477210360_normed00.mp3"
}, {
"ci": "直线",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-0da199f31eab4f25b622efb65d5797f6_normed00.mp3",
"tone": "zhí",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/1t76gukoddn/1651815015867_normed00.mp3",
"zi": "直",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/1v9maa47tgh_1653477129441_normed00.mp3"
}, {
"ci": "纸张",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-f9e9ca28072b40d89c4494c9485c3dd3_normed00.mp3",
"tone": "zhǐ",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/g5x0fkh4vq/1651815031542_normed00.mp3",
"zi": "纸",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/16ct4bqvrco_1653477130808_normed00.mp3"
}, {
"ci": "治理",
"ciAudioUrl": "https://source1.qiaoxuesi.com/tts/tts-f74098a8cecd4f4c99d12c261b940e92-2d2d232ec42e4baab3a989eb42588c74_normed00.mp3",
"tone": "zhì",
"toneAudioUrl": "https://source1.qiaoxuesi.com/source/audio/2l2bwwg9a64/1651815041979_normed00.mp3",
"zi": "治",
"ziAudioUrl": "https://source1.qiaoxuesi.com/source/audio/2ev0jnrxwfx_1653477132669_normed00.mp3"
}],
"typeExt": 4,
"videoUrl": "https://source1.qiaoxuesi.com/source/video/1hhd2li45sz/1660959767651_320_170.mp4"
}
}]
}
}
}
}
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| spelling | String | 是 | 文本 |
| titleAudioUrl | String | 是 | 音频 |
| spellingGif | String | 是 | 拼音gif |
| imgUrl | String | 是 | 象形图片 |
| audioUrl | String | 是 | 顺口溜音频 |
| videoUrl | String | 是 | 拼音学习视频 |
| toneOrder | String | 是 | 音序 |
| typeExt | int | 是 | 拼音词典查询类别扩展字段 0:韵母;1.声母;3:拼读;4:整体认读 |
| tones | object | 否 | 四声调文本 |
tones字段说明
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| tone | String | 是 | 四声调文本 |
| toneAudioUrl | String | 是 | 四声调音频 |
| pin | String | 否 | 拼读 |
| pinAudioUrl | String | 否 | 拼读音频 |
| ci | String | 是 | 声调范字 |
| ciAudioUrl | String | 是 | 声调范字音频 |
| zi | String | 是 | 声调范词 |
| ziAudioUrl | String | 是 | 声调范词音频 |
拼读
{
"code": 200,
"done": true,
"globalId": "",
"message": "success",
"nlpResponse": {
"intent": {
"code": 1000775,
"operateState": 1010,
"parameters": {
"result": [{
"sourceType": "Turingkid",
"dictType": "pinyin",
"info": {
"allSpellings": ["xiāo", "xiáo", "xiǎo", "xiào"],
"audioUrl": "https://source1.qiaoxuesi.com/source/audio/64cvnxyyhx_1653477642277_normed00.mp3",
"spelling": "xiǎo",
"spellingType": "三拼音节",
"spellings": [{
"name": "x",
"type": "声母"
}, {
"name": "i",
"type": "韵母"
}, {
"name": "ɑo",
"type": "韵母"
}],
"toneNum": 3,
"toneOrder": "x",
"typeExt": 3,
"words": [{
"content": "筱"
}],
"phrases": [{
"content": "渺小"
}]
}
}]
}
}
}
}
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| spelling | String | 是 | 文本 |
| spellingType | String | 是 | 拼读类别(整体认读⾳节/两拼⾳节/三拼⾳节) |
| audioUrl | String | 是 | 拼读音频 |
| toneOrder | String | 是 | 音序 |
| toneNum | int | 是 | 声调(0 代表轻声) |
| typeExt | int | 是 | 拼音词典查询类别扩展字段 0:韵母;1.声母;3:拼读;4:整体认读 |
| spellings | array | 是 | 拼读内容 |
| allSpellings | array | 是 | 四声调文本 |
| words | array | 是 | 范字 |
| phrases | array | 是 | 范词 |
spellings字段说明
| 参数 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| name | String | 是 | 内容 |
| type | String | 是 | 类型 |
3. 根据古诗词 id 查询古诗词全文
方法
- 不指定词典类型
void queryPoem(String poemId, TuringOSClientListener listener);
- 指定词典类型
void queryPoem(String poemId,String dictType ,TuringOSClientListener listener);
输入说明
| 参数 | 类型 | 说明 |
|---|---|---|
| poemId | String | 古诗词id |
| dictType | String | 词典类型 |
| listener | TuringOSClientListener | 回调接口 |
请求示例
val poemId = "9e7e5e1e96e34b95b34edcc7b8881e69"
TuringOnlineDict.getInstance(this).queryPoem(str,
object :TuringOSClientListener{
override fun onResult(code: Int,result: String?,baseResp: BaseResp?,extension: String?) {
// result 为透传数据,需要客户端自行解析 json 数据。
}
override fun onError(code: Int, msg: String?) {
}
})
输出说明
返回结果 同 【1.在线词典查询】返回参数说明 中【3.古诗词】。
4. 分词
方法
void splitWord(String data, TuringListener<List<WordInfo>> listener);
输入说明
| 参数 | 类型 | 说明 |
|---|---|---|
| dat | String | 文本 |
| listener | TuringOSClientListener | 回调接口 |
请求示例
val data = "锦瑟:装饰华美的瑟。瑟:拨弦乐器,通常二十五弦。无端:犹何故。怨怪之词。"
TuringOnlineDict.getInstance(this).splitWord(data,
object :TuringListener<List<WordInfo>>{
override fun onResult(result: List<WordInfo>?) {
}
override fun onError(code: Int, msg: String?) {
}
})
输出说明
| 参数 | 类型 | 说明 |
|---|---|---|
| dataType | int | 词的来源 0:未知-默认值 1:中文自定义词典 2:英文自定义词典 -1:不在中文和英文的自定义词典 |
| nature | String | 词性 |
| word | String | 分词文本返回 |
| subTerms | List\ |
下一层的更细粒度的分词结果集 |
目前分词结果为多层嵌套结构:
1.当获取到分词结果时,可直接从第一层json中获取分词文本,如”我“,”想“,”听“,”三国演义“;
2.获取分词文本时,可在同层级json中判断是否有subTerms字段,若有subTerms字段,则代表首次分词结果可继续分词,如“三国”,“演义”;如没有subTerms字段,则代表不能继续分词。其他层级依次类推。