Commit f0f0dde2 authored by rico.liu's avatar rico.liu

update similarity

parent 5f7f3949
......@@ -101,7 +101,7 @@ def check_data(category_name,path):
for db_param in db_params['subtitle'].tolist():
if db_param in ['产品型号', 'CPU属性']:#CPU属性为衍生属性,需要特殊处理
continue
pri_value = row[db_param]
pri_value = str(row[db_param])
value, value_flag = tuple(res_value_dict[id_][db_param].items())[0]
if value_flag == False:
......@@ -116,6 +116,7 @@ def check_data(category_name,path):
init_fraction = 0
recommend_pri = ''
for dict_pri in data_dict[data_dict['subtitle'] == db_param]['primitive'].unique().tolist():
dict_pri = str(dict_pri)
try:
fraction_part1 = similarity_cn(pri_value,dict_pri)
except:
......
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 to comment