|
|
|
@ -183,6 +183,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
|
JSONArray semantic_result = semanticResult.getJSONArray(s1);
|
|
|
|
|
if (CollectionUtils.isNotEmpty(semantic_result)) {
|
|
|
|
|
jsonArray.addAll(semantic_result);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else if (Arrays.asList("科室名称","科室").contains(s)) {
|
|
|
|
@ -190,6 +191,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
|
JSONArray semantic_result = semanticResult.getJSONArray(s1);
|
|
|
|
|
if (CollectionUtils.isNotEmpty(semantic_result)) {
|
|
|
|
|
jsonArray.addAll(semantic_result);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else if (Arrays.asList("医院名称","医院").contains(s)) {
|
|
|
|
@ -197,6 +199,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
|
JSONArray semantic_result = semanticResult.getJSONArray(s1);
|
|
|
|
|
if (CollectionUtils.isNotEmpty(semantic_result)) {
|
|
|
|
|
jsonArray.addAll(semantic_result);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
@ -762,6 +765,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
|
JSONArray semantic_result = semanticResult.getJSONObject("semantic_result").getJSONArray(s1);
|
|
|
|
|
if (CollectionUtils.isNotEmpty(semantic_result)) {
|
|
|
|
|
jsonArray.addAll(semantic_result);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else if (Arrays.asList("科室名称","科室").contains(s)) {
|
|
|
|
@ -769,6 +773,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
|
JSONArray semantic_result = semanticResult.getJSONObject("semantic_result").getJSONArray(s1);
|
|
|
|
|
if (CollectionUtils.isNotEmpty(semantic_result)) {
|
|
|
|
|
jsonArray.addAll(semantic_result);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else if (Arrays.asList("医院名称","医院").contains(s)) {
|
|
|
|
@ -776,6 +781,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
|
JSONArray semantic_result = semanticResult.getJSONObject("semantic_result").getJSONArray(s1);
|
|
|
|
|
if (CollectionUtils.isNotEmpty(semantic_result)) {
|
|
|
|
|
jsonArray.addAll(semantic_result);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|