feat(openai): 新增 NLP 相关接口

This commit is contained in:
Fu Diwei
2021-10-11 18:34:21 +08:00
parent 38f05bc467
commit 592e4e3587
38 changed files with 1617 additions and 42 deletions

View File

@@ -0,0 +1,6 @@
{
"uid": "xjlsj33lasfaf",
"data": {
"q": "帮我订两张后天上午的火车票"
}
}

View File

@@ -0,0 +1,22 @@
{
"data": [
{
"type": "number",
"span": [
3,
4
],
"text": "两",
"norm": "2"
},
{
"type": "datetime_interval",
"span": [
5,
9
],
"text": "后天上午",
"norm": "2019-10-30 08:00:00~2019-10-30 11:59:59"
}
]
}

View File

@@ -0,0 +1,7 @@
{
"uid": "xjlsj33lasfaf",
"data": {
"q": "楼主真垃圾,祝你早日死全家",
"model": "cnnn"
}
}

View File

@@ -0,0 +1,22 @@
{
"data": {
"result": [
[
"dirty_curse",
0.9999999900000001
],
[
"other",
9.9999999E-9
],
[
"dirty_politics",
0.0
],
[
"dirty_porno",
0.0
]
]
}
}

View File

@@ -0,0 +1,7 @@
{
"uid": "xjlsj33lasfaf",
"data": {
"q": "恭喜小张脱单成功",
"mode": "3class"
}
}

View File

@@ -0,0 +1,18 @@
{
"data": {
"result": [
[
"正面",
0.9593541622161865
],
[
"无情感",
0.0400625541806221
],
[
"负面",
0.000583284127060324
]
]
}
}

View File

@@ -0,0 +1,6 @@
{
"uid": "xjlsj33lasfaf",
"data": {
"q": "在微信智言与微信智聆两大技术的支持下微信AI团队推出了“微信对话开放平台”和“腾讯小微”智能硬件两大核心产品。微信支付团队最新发布的“微信青蛙Pro”在现场设置了体验区让大家感受AI认脸的本事。"
}
}

View File

@@ -0,0 +1,284 @@
{
"data": {
"words": [
"在",
"微信",
"智",
"言",
"与",
"微信",
"智",
"聆",
"两",
"大",
"技术",
"的",
"支持",
"下",
",",
"微信",
"ai",
"团队",
"推出",
"了",
"“",
"微信",
"对话",
"开放",
"平台",
"”",
"和",
"“",
"腾讯",
"小",
"微",
"”",
"智能",
"硬件",
"两",
"大",
"核心",
"产品",
"。",
"微信",
"支付",
"团队",
"最新",
"发布",
"的",
"“",
"微信",
"青蛙",
"pro",
"”",
"在",
"现场",
"设置",
"了",
"体验",
"区",
",",
"让",
"大家",
"感受",
"ai",
"认",
"脸",
"的",
"本事",
"。"
],
"POSs": [
25,
16,
16,
46,
25,
16,
16,
46,
15,
1,
16,
30,
33,
8,
34,
31,
23,
16,
31,
36,
34,
16,
33,
33,
16,
34,
5,
34,
6,
1,
38,
34,
16,
16,
15,
1,
16,
16,
34,
6,
31,
16,
1,
31,
30,
34,
31,
16,
23,
34,
25,
28,
31,
30,
33,
16,
34,
31,
27,
31,
23,
31,
16,
30,
16,
34
],
"words_mix": [
"在",
"微信",
"智",
"言",
"与",
"微信",
"智",
"聆",
"两",
"大",
"技术",
"的",
"支持",
"下",
",",
"微信",
"ai",
"团队",
"推出",
"了",
"“",
"微信",
"对话",
"开放",
"平台",
"”",
"和",
"“",
"腾讯",
"小微",
"”",
"智能",
"硬件",
"两",
"大",
"核心",
"产品",
"。",
"微信",
"支付",
"团队",
"最新",
"发布",
"的",
"“",
"微信",
"青蛙",
"pro",
"”",
"在",
"现场",
"设置",
"了",
"体验",
"区",
",",
"让",
"大家",
"感受",
"ai",
"认",
"脸",
"的",
"本事",
"。"
],
"POSs_mix": [
25,
16,
16,
46,
25,
16,
16,
46,
15,
1,
16,
30,
33,
8,
34,
31,
23,
16,
31,
36,
34,
16,
33,
33,
16,
34,
5,
34,
6,
16,
34,
16,
16,
15,
1,
16,
16,
34,
6,
31,
16,
1,
31,
30,
34,
31,
16,
23,
34,
25,
28,
31,
30,
33,
16,
34,
31,
27,
31,
23,
31,
16,
30,
16,
34
],
"entities": [
"腾讯",
"小微",
"最新发布"
],
"entity_types": [
100000013,
0,
0
]
}
}