itam-assistant 0.1.6__py3-none-any.whl → 0.1.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- it_assistant/do_ai.py +5 -5
- itam_assistant/do_ai.py +15 -20
- {itam_assistant-0.1.6.dist-info → itam_assistant-0.1.8.dist-info}/METADATA +2 -2
- {itam_assistant-0.1.6.dist-info → itam_assistant-0.1.8.dist-info}/RECORD +7 -7
- main/do_ai.py +3 -3
- {itam_assistant-0.1.6.dist-info → itam_assistant-0.1.8.dist-info}/WHEEL +0 -0
- {itam_assistant-0.1.6.dist-info → itam_assistant-0.1.8.dist-info}/top_level.txt +0 -0
it_assistant/do_ai.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
import time
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
3
|
+
from itam_assistant1.ailyapp_client import AilyLarkClient
|
|
4
|
+
from itam_assistant1.lark_client import LarkdocsClient
|
|
5
|
+
from itam_assistant1.intent_detail import *
|
|
6
|
+
from itam_assistant1.openapi import *
|
|
7
7
|
import datetime
|
|
8
8
|
import copy
|
|
9
9
|
import os
|
|
@@ -895,7 +895,7 @@ def write_excletolist(data_name):
|
|
|
895
895
|
try:
|
|
896
896
|
# 查看当前工作目录
|
|
897
897
|
print(f"当前工作目录: {os.getcwd()}")
|
|
898
|
-
# /Users/bytedance/
|
|
898
|
+
# /Users/bytedance/itam_assistant1/itam_assistant1/accessory.csv
|
|
899
899
|
# 构建文件路径
|
|
900
900
|
file_path = f'data/{data_name}.csv'
|
|
901
901
|
Candidates = []
|
itam_assistant/do_ai.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
import time
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
3
|
+
from itam_assistant1.ailyapp_client import AilyLarkClient
|
|
4
|
+
from itam_assistant1.lark_client import LarkdocsClient
|
|
5
|
+
from itam_assistant1.intent_detail import *
|
|
6
|
+
from itam_assistant1.openapi import *
|
|
7
7
|
import datetime
|
|
8
8
|
import copy
|
|
9
9
|
import os
|
|
@@ -334,12 +334,12 @@ def do_metricsevaluation_list(collections,data,score_threshold):
|
|
|
334
334
|
"""
|
|
335
335
|
info = {
|
|
336
336
|
"input": {
|
|
337
|
-
"用户输入/userInput": "
|
|
337
|
+
"用户输入/userInput": "测试数据"
|
|
338
338
|
},
|
|
339
339
|
"output": {
|
|
340
|
-
"用户输入/output": "
|
|
340
|
+
"用户输入/output": "测试数据"
|
|
341
341
|
},
|
|
342
|
-
"rt":
|
|
342
|
+
"rt": False,
|
|
343
343
|
"label": [{"label": "测试"}, {"label": "测试"}],
|
|
344
344
|
"exp": [{"label": "测试"}, {"label": "测试" }],
|
|
345
345
|
"artificial": []
|
|
@@ -348,21 +348,15 @@ def do_metricsevaluation_list(collections,data,score_threshold):
|
|
|
348
348
|
businessscenario = []
|
|
349
349
|
for i in collections:
|
|
350
350
|
for j in data:
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
"rt": False,
|
|
356
|
-
"label": [{"label": "测试"}, {"label": "测试"}],
|
|
357
|
-
"exp": [{"label": "测试",}, {"label": "测试"}],
|
|
358
|
-
"artificial": []
|
|
359
|
-
}
|
|
360
|
-
info['input']['用户输入/userInput'] = i['ext']['output']
|
|
351
|
+
cleaned_content = i['content'].replace('\r', '').replace('\n', '').replace('\\', '')
|
|
352
|
+
cleaned_userInput = j['用户输入/userInput'].replace('\r', '').replace('\n', '').replace('\\', '')
|
|
353
|
+
if cleaned_content == cleaned_userInput:
|
|
354
|
+
info['input']['用户输入/userInput'] = i['ext']['input']
|
|
361
355
|
info['output']['用户输入/output'] = "对话id:"+j['对话日志/intentID']+" 对话内容:"+j['用户输入/userInput']
|
|
362
356
|
if i['ext']['BPO标注-AP-分发技能'] != '' and i['ext']['BPO标注-AP-分发技能'] in j['分发技能/skill'][0]:
|
|
363
357
|
info['rt'] = True
|
|
364
358
|
info['label'] = [{'label': j['分发技能/skill'][0]}]
|
|
365
|
-
info['exp'] = [{'label':
|
|
359
|
+
info['exp'] = [{'label': i['ext']['BPO标注-AP-分发技能']}]
|
|
366
360
|
info['artificial'] = info['exp']
|
|
367
361
|
else:
|
|
368
362
|
info['rt'] = False
|
|
@@ -373,8 +367,9 @@ def do_metricsevaluation_list(collections,data,score_threshold):
|
|
|
373
367
|
businessscenario.append(i['ext']['BPO标注-AP-分发技能'])
|
|
374
368
|
#将data中的j删除
|
|
375
369
|
data.remove(j)
|
|
370
|
+
info_list.append(copy.deepcopy(info))
|
|
371
|
+
print(info)
|
|
376
372
|
break
|
|
377
|
-
info_list.append(copy.deepcopy(info))
|
|
378
373
|
return info_list,businessscenario
|
|
379
374
|
|
|
380
375
|
|
|
@@ -900,7 +895,7 @@ def write_excletolist(data_name):
|
|
|
900
895
|
try:
|
|
901
896
|
# 查看当前工作目录
|
|
902
897
|
print(f"当前工作目录: {os.getcwd()}")
|
|
903
|
-
# /Users/bytedance/
|
|
898
|
+
# /Users/bytedance/itam_assistant1/itam_assistant1/accessory.csv
|
|
904
899
|
# 构建文件路径
|
|
905
900
|
file_path = f'data/{data_name}.csv'
|
|
906
901
|
Candidates = []
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
it_assistant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
it_assistant/ailyapp_client.py,sha256=w-ihtcmRgOQCgWK0jB8eHGCikjo1tbre3xCiEKhLrUA,6357
|
|
3
3
|
it_assistant/config.py,sha256=L_5grm2ZWwg_S1JTOU6XLhQ5GPeYJaBFBLwzP2JA5Ys,5498
|
|
4
|
-
it_assistant/do_ai.py,sha256=
|
|
4
|
+
it_assistant/do_ai.py,sha256=Rs7SdXx_7DA9MQeEC9TQ-lHYZLFykETXf63-ppgrKek,41505
|
|
5
5
|
it_assistant/intent_detail.py,sha256=hmEj1KpcuKNvsoBZmn5PnbsBIIx6XGmQBJWdW_ICFmg,16831
|
|
6
6
|
it_assistant/lark_client.py,sha256=ZVDsdt7ucQvJN1-khC3TR-0IMeYaQXfdWF5DxRrkBH4,6665
|
|
7
7
|
it_assistant/logger.py,sha256=W3-tbQ4J-QKSrQSpaNBruzoyMuWYrUkrIY0uBZ1o-lw,1583
|
|
@@ -10,7 +10,7 @@ it_assistant/test.py,sha256=qGSihMYmtZkz_vifwEOz579f_wPBJAx5_rz1sABUyo4,581
|
|
|
10
10
|
itam_assistant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
itam_assistant/ailyapp_client.py,sha256=w-ihtcmRgOQCgWK0jB8eHGCikjo1tbre3xCiEKhLrUA,6357
|
|
12
12
|
itam_assistant/config.py,sha256=L_5grm2ZWwg_S1JTOU6XLhQ5GPeYJaBFBLwzP2JA5Ys,5498
|
|
13
|
-
itam_assistant/do_ai.py,sha256=
|
|
13
|
+
itam_assistant/do_ai.py,sha256=esVBjVZb_D_lxWng3X9nUj8s_qSYKaCorlhhfPn8I68,41603
|
|
14
14
|
itam_assistant/intent_detail.py,sha256=hmEj1KpcuKNvsoBZmn5PnbsBIIx6XGmQBJWdW_ICFmg,16831
|
|
15
15
|
itam_assistant/lark_client.py,sha256=ZVDsdt7ucQvJN1-khC3TR-0IMeYaQXfdWF5DxRrkBH4,6665
|
|
16
16
|
itam_assistant/logger.py,sha256=W3-tbQ4J-QKSrQSpaNBruzoyMuWYrUkrIY0uBZ1o-lw,1583
|
|
@@ -18,11 +18,11 @@ itam_assistant/openapi.py,sha256=-YMx-Feu1dHkQ86EB1-QmQZJHS4dND3sNSnIpBF94w4,377
|
|
|
18
18
|
itam_assistant/test.py,sha256=qGSihMYmtZkz_vifwEOz579f_wPBJAx5_rz1sABUyo4,581
|
|
19
19
|
main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
main/ailyapp_client.py,sha256=6CVlBkuiIvIzqG0lM38tdGFBNLhVi2_0jQIbHg7fpzw,6515
|
|
21
|
-
main/do_ai.py,sha256=
|
|
21
|
+
main/do_ai.py,sha256=rxsTRdd3oBs-gsIssHz3XV-6lIC5Bq4qoyNuyQzjidg,6879
|
|
22
22
|
main/intent_detail.py,sha256=Fo76c4BpGya-znCnKH7YAcr_2UJtbi3WPQN-PwtVsXc,18533
|
|
23
23
|
main/lark_client.py,sha256=ZVDsdt7ucQvJN1-khC3TR-0IMeYaQXfdWF5DxRrkBH4,6665
|
|
24
24
|
main/logger.py,sha256=W3-tbQ4J-QKSrQSpaNBruzoyMuWYrUkrIY0uBZ1o-lw,1583
|
|
25
|
-
itam_assistant-0.1.
|
|
26
|
-
itam_assistant-0.1.
|
|
27
|
-
itam_assistant-0.1.
|
|
28
|
-
itam_assistant-0.1.
|
|
25
|
+
itam_assistant-0.1.8.dist-info/METADATA,sha256=b-0yfthQ4e7IQ6a6iFDpQh9LkZV029snjIlO1VFgeII,556
|
|
26
|
+
itam_assistant-0.1.8.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
27
|
+
itam_assistant-0.1.8.dist-info/top_level.txt,sha256=KpZA4H04XBVAB3NLq0AAEOrAGEurwMnWw41AhJVqVFI,15
|
|
28
|
+
itam_assistant-0.1.8.dist-info/RECORD,,
|
main/do_ai.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
3
|
+
from itam_assistant1.ailyapp_client import AilyLarkClient
|
|
4
|
+
from itam_assistant1.lark_client import LarkdocsClient
|
|
5
|
+
from itam_assistant1.intent_detail import *
|
|
6
6
|
import datetime
|
|
7
7
|
|
|
8
8
|
|
|
File without changes
|
|
File without changes
|