Commit ed3f93c2 by lichenggang

添加注释

parent b7f946c4
......@@ -8,10 +8,16 @@ from utils.robots import dd_send_msg
import pandas as pd
from static_config import *
# 数量列阈值
RIGHT_LEVEL = 0.7
# 序号列阈值
SEQ_LEVEL = 0.5
# 类别列阈值
CATE_LEVEL = 0.5
#
MULTI_SAME_LEVEL = 3
# 位号列阈值
REF_LEVEL = 0.5
class BasePredictor:
......
......@@ -206,12 +206,12 @@ class DicPredict(BasePredictor):
head_std_result = head_id_res.get('std_result')
model_std_result = model_id_res.get('std_result')
comprehensive_res = BasePredictor.get_comprehensive_res(head_std_result, model_std_result)
self.info.info('综合预测结果: ' + str(comprehensive_res))
if comprehensive_res:
res = {
'std_result': comprehensive_res,
'ab_result': head_id_res['ab_result'] or model_id_res['ab_result'] or {},
}
self.info.info('综合预测结果: ' + str(comprehensive_res))
return res
elif predict_type == 'model':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment