|
@@ -128,16 +128,16 @@ public class ParamsDataProxy {
|
|
|
featuresList = fa.start(searchData.getDiag(), FeatureType.DIAG);
|
|
|
paramFeatureInit(searchData, featuresList);
|
|
|
}
|
|
|
- if (!StringUtils.isEmpty(searchData.getPacs())) {
|
|
|
- //关系抽取模型
|
|
|
- AlgorithmCNNExecutorPacs algorithmCNNExecutor = RelationExtractionFactory.getInstance();
|
|
|
- RelationExtractionUtil re = new RelationExtractionUtil();
|
|
|
- //Pacs原始分词结果
|
|
|
- List<List<String>> execute = algorithmCNNExecutor.execute(searchData.getPacs(), re.createTriad(searchData));
|
|
|
- if (execute != null && execute.size() > 0) {
|
|
|
- re.addToSearchDataInputs(execute, searchData);
|
|
|
- }
|
|
|
- }
|
|
|
+// if (!StringUtils.isEmpty(searchData.getPacs())) {
|
|
|
+// //关系抽取模型
|
|
|
+// AlgorithmCNNExecutorPacs algorithmCNNExecutor = RelationExtractionFactory.getInstance();
|
|
|
+// RelationExtractionUtil re = new RelationExtractionUtil();
|
|
|
+// //Pacs原始分词结果
|
|
|
+// List<List<String>> execute = algorithmCNNExecutor.execute(searchData.getPacs(), re.createTriad(searchData));
|
|
|
+// if (execute != null && execute.size() > 0) {
|
|
|
+// re.addToSearchDataInputs(execute, searchData);
|
|
|
+// }
|
|
|
+// }
|
|
|
//模型需要病历文本信息传入
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
map.put("sentence", searchData.getSymptom());
|