Explorar o código

1、修改模型返回获取对象方法

louhr %!s(int64=5) %!d(string=hai) anos
pai
achega
9fdc976580

+ 3 - 2
kernel/src/main/java/com/lantone/qc/kernel/analysis/QCAnalysis.java

@@ -36,10 +36,11 @@ public class QCAnalysis {
         OutputInfo outputInfo = new OutputInfo();
         InputInfo inputInfo = TransDispatch.trans(queryVo);
         inputInfo.setInputCatalogueMap(queryVo.getInputCatalogueMap());
-        AIAnalyze AIAnalyze = new AIAnalyze(crfServiceClient, similarityServiceClient);
+        AIAnalyze aiAnalyze = new AIAnalyze(crfServiceClient, similarityServiceClient);
         try{
-            AIAnalyze.AIprocess(inputInfo);
+            aiAnalyze.aiProcess(inputInfo);
         }catch (Exception e){
+            e.printStackTrace();
         }
         for (Map.Entry<String, Map<String, String>> entry : inputInfo.getInputCatalogueMap().entrySet()) {
             if (CatalogueUtil.qcCatalogueMap.get(entry.getKey()) == null) {

+ 1 - 1
kernel/src/main/java/com/lantone/qc/kernel/structure/ai/AIAnalyze.java

@@ -24,7 +24,7 @@ public class AIAnalyze {
         this.similarityServiceClient = similarityServiceClient;
     }
 
-    public void AIprocess(InputInfo inputInfo) {
+    public void aiProcess(InputInfo inputInfo) {
         beHospitalizedAI.medrec(inputInfo, crfServiceClient);
         firstCourseRecordAI.medrec(inputInfo, crfServiceClient, similarityServiceClient);
         leaveHospitalAI.medrec(inputInfo, crfServiceClient);

+ 1 - 1
kernel/src/main/java/com/lantone/qc/kernel/structure/ai/ModelAI.java

@@ -56,7 +56,7 @@ public class ModelAI {
             return new JSONObject();
         }
         JSONObject aiOut = jsonObject.getJSONObject(entityRelationObject).getJSONObject(outputs);
-        aiOut.put(content, jsonObject.getJSONObject(entityRelationObject).getJSONObject(content));
+        aiOut.put(content, jsonObject.getJSONObject(entityRelationObject).getString(content));
         return aiOut;
     }