Browse Source

修改CRF出错提示语

zhoutg 3 years atrás
parent
commit
6af85ec242

+ 1 - 1
src/main/java/com/diagbot/client/hystrix/CRFServiceHystrix.java

@@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody;
 public class CRFServiceHystrix implements CRFServiceClient {
     @Override
     public String getAnnotation(@RequestBody CRFVo crfVo) {
-        log.error("【hystrix】调用{}异常", "CRF-getAnnotation");
+        log.error("CRF解析文本【超时】或【服务出错】");
         return null;
     }
 }

+ 1 - 1
src/main/java/com/diagbot/model/ai/BeHospitalizedAI.java

@@ -242,7 +242,7 @@ public class BeHospitalizedAI extends ModelAI {
             try {
                 midData = loadAI(crfContent, crfServiceClient);
             } catch (Exception e) {
-                throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "CRF模型【服务器】挂了!" + e.getMessage());
+                throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "CRF解析文本【超时】或【服务出错】!");
             }
             /* 处理主诉 */
             if (StringUtil.isNotBlank(wordCrfDTO.getChiefLabel().getText())) {