|
@@ -54,6 +54,8 @@ public class IndicationFacade {
|
|
|
* @return
|
|
|
*/
|
|
|
public IndicationDTO indicationFac(IndicationPushVO indicationPushVO) {
|
|
|
+ IndicationDTO res = new IndicationDTO();
|
|
|
+
|
|
|
//方法适配处理
|
|
|
List<String> ruleTypeList = Arrays.asList(indicationPushVO.getRuleType().split(","));
|
|
|
indicationPushVO.setRuleTypeList(ruleTypeList);
|
|
@@ -70,23 +72,24 @@ public class IndicationFacade {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- IndicationDTO res = new IndicationDTO();
|
|
|
WordCrfDTO wordCrfDTO = null;
|
|
|
long l1 = System.currentTimeMillis();
|
|
|
+
|
|
|
+ // 模型处理数据
|
|
|
+ long crfStart = System.currentTimeMillis();
|
|
|
if (methodList.contains("crf")) {
|
|
|
- // 模型处理数据
|
|
|
wordCrfDTO = commonFacade.crf_process(indicationPushVO);
|
|
|
- CoreUtil.getDubugStr(l1, "处理模型数据", res.getDubugStr());
|
|
|
}
|
|
|
+ long crfEnd = System.currentTimeMillis();
|
|
|
|
|
|
+ // 标准词转换
|
|
|
+ long standStart = System.currentTimeMillis();
|
|
|
if (methodList.contains("stand")) {
|
|
|
- // 标准词转换
|
|
|
- long l2 = System.currentTimeMillis();
|
|
|
StandConvert standConvert = commonFacade.dataTypeGet(wordCrfDTO);
|
|
|
Map<String, Map<String, String>> standConvertMap = neoFacade.standConvertCrf(standConvert);
|
|
|
commonFacade.dataTypeSet(wordCrfDTO, standConvertMap);
|
|
|
- CoreUtil.getDubugStr(l2, "同义词转换", res.getDubugStr());
|
|
|
}
|
|
|
+ long standEnd = System.currentTimeMillis();
|
|
|
|
|
|
try {
|
|
|
Map<String, Object> invokeParams = new HashMap<>();
|
|
@@ -97,7 +100,10 @@ public class IndicationFacade {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "提醒类服务出错" + e.getMessage());
|
|
|
}
|
|
|
|
|
|
- CoreUtil.getDubugStr(l1, "本次调用总计", res.getDubugStr());
|
|
|
+ // 输入调试信息
|
|
|
+ CoreUtil.getDebugStrFirst(standStart, standEnd,"同义词转换", res.getDebugStr());
|
|
|
+ CoreUtil.getDebugStrFirst(crfStart, crfEnd,"处理模型数据", res.getDebugStr());
|
|
|
+ CoreUtil.getDebugStr(l1, "本次调用总计", res.getDebugStr());
|
|
|
return res;
|
|
|
}
|
|
|
}
|