|
@@ -51,10 +51,12 @@ public class ChangxThreeLevelWardDocTrans extends ModelDocTrans {
|
|
}
|
|
}
|
|
cutWordMap = Preproc.getCutWordMap(true, sourceTitles, text);
|
|
cutWordMap = Preproc.getCutWordMap(true, sourceTitles, text);
|
|
if (StringUtil.isBlank(structureMap.get("记录医师"))) {
|
|
if (StringUtil.isBlank(structureMap.get("记录医师"))) {
|
|
- Pattern p = Pattern.compile("^[^\\u4e00-\\u9fa5]+$");
|
|
|
|
- Matcher m = p.matcher(cutWordMap.get("医师签名"));
|
|
|
|
- if (!m.matches()) {
|
|
|
|
- structureMap.put("记录医师", cutWordMap.get("医师签名"));
|
|
|
|
|
|
+ if(StringUtil.isNotEmpty(cutWordMap.get("医师签名"))){
|
|
|
|
+ Pattern p = Pattern.compile("^[^\\u4e00-\\u9fa5]+$");//分词结果如果不包含中文为日期,则不覆盖
|
|
|
|
+ Matcher m = p.matcher(cutWordMap.get("医师签名"));
|
|
|
|
+ if (!m.matches()) {
|
|
|
|
+ structureMap.put("记录医师", cutWordMap.get("医师签名"));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|