This commit is contained in:
刘正航
2026-05-11 16:11:41 +08:00
parent 25fd25005a
commit f342fdc9b4

View File

@@ -395,9 +395,9 @@ def export_xlsx():
"文本": item.get("text", ""), "文本": item.get("text", ""),
"判定结果": prediction_text, "判定结果": prediction_text,
"分类标签": item.get("category_label", ""), "分类标签": item.get("category_label", ""),
"置信度": f"{float(item.get("confidence", 0) or 0) * 100:.2f}%", "置信度": f"{float(item.get('confidence', 0) or 0) * 100:.2f}%",
"垃圾概率": f"{float(item.get("spam_probability", 0) or 0) * 100:.2f}%", "垃圾概率": f"{float(item.get('spam_probability', 0) or 0) * 100:.2f}%",
"正常概率": f"{float(item.get("ham_probability", 0) or 0) * 100:.2f}%", "正常概率": f"{float(item.get('ham_probability', 0) or 0) * 100:.2f}%",
"风险关键词": token_str, "风险关键词": token_str,
}) })