From aef16113f5ffc1f9cb841ad56129e9029b5768d6 Mon Sep 17 00:00:00 2001 From: lyg <1543117173@qq.com> Date: 星期三, 07 五月 2025 16:32:15 +0800 Subject: [PATCH] 生成指令单元并插入db,docx转pdf,pdf按页切分,按页提取实体词并保存到neo4j数据库。 --- knowledgebase/db/db_helper.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/knowledgebase/db/db_helper.py b/knowledgebase/db/db_helper.py index cf94ba0..c394644 100644 --- a/knowledgebase/db/db_helper.py +++ b/knowledgebase/db/db_helper.py @@ -379,8 +379,12 @@ "combPkt": 12, "const": 15, "length": 17, - "enum": 26, + "enum": 18, + "sendFlag": 26, "checkSum": 20, + "insUnit": 4, + "insUnitList": 11, + "input": 19 } @@ -395,7 +399,7 @@ C_CODE=info['code'] if 'code' in info else '', C_TYPE=ins_ty[info['type']] if 'type' in info else 0, C_DEF=info['def'] if 'def' in info else None, - C_BIT_WIDTH=info['bitWidth'] if 'bitWidth' in info else 0, + C_BIT_WIDTH=info['bitWidth'] if 'bitWidth' in info else None, C_BIT_ORDER=info['bitOrder'] if 'bitOrder' in info else 0, C_ATTR=info['attr'] if 'attr' in info else 0, C_RANGE=info['range'] if 'range' in info else None, -- Gitblit v1.9.1