Просмотр исходного кода

更新分词的方式,修改诊疗计划的内容提取方式

MarkHuang 5 лет назад
Родитель
Сommit
bc443c8536

+ 3 - 2
kernel/src/main/java/com/lantone/qc/kernel/structure/ai/FirstCourseRecordAI.java

@@ -60,10 +60,11 @@ public class FirstCourseRecordAI extends ModelAI {
             }
             //诊疗计划
             if (StringUtils.isNotEmpty(structureMap.get("诊疗计划")) && StringUtils.isNotEmpty(structureMap.get("需求评估"))) {
-                putContent(crfContent, medicalTextType.get(2), structureMap.get("需求评估") + StringUtils.isNotEmpty(structureMap.get("诊疗计划")), "诊疗计划");
-                firstCourseRecordDoc.getTreatPlanLabel().setText(structureMap.get("需求评估") + StringUtils.isNotEmpty(structureMap.get("诊疗计划")));
+                putContent(crfContent, medicalTextType.get(2), structureMap.get("诊疗计划") + structureMap.get("需求评估"), "诊疗计划");
+                firstCourseRecordDoc.getTreatPlanLabel().setText(structureMap.get("诊疗计划") + structureMap.get("需求评估"));
             } else if (StringUtils.isNotEmpty(structureMap.get("诊疗计划"))) {
                 putContent(crfContent, medicalTextType.get(2), structureMap.get("诊疗计划"), "诊疗计划");
+                firstCourseRecordDoc.getTreatPlanLabel().setText(structureMap.get("诊疗计划"));
             } else if (StringUtils.isNotEmpty(structureMap.get("需求评估"))) {
                 putContent(crfContent, medicalTextType.get(2), structureMap.get("需求评估"), "诊疗计划");
                 firstCourseRecordDoc.getTreatPlanLabel().setText(structureMap.get("需求评估"));

+ 1 - 1
trans/src/main/java/com/lantone/qc/trans/changx/ChangxFirstCourseRecordDocTrans.java

@@ -60,7 +60,7 @@ public class ChangxFirstCourseRecordDocTrans extends ModelDocTrans {
         });
         Map<String, String> sourceMap = Preproc.extract_doc_pub(true, targetTitles, content);
         for (String key : sourceMap.keySet()) {
-            retMap.put(key.replaceAll("[一二三四五六七八九十][、.]", ""), sourceMap.get(key));
+            retMap.put(key.replaceAll("[一二三四五六七八九十、.]", ""), sourceMap.get(key));
         }
         return retMap;
     }