|
@@ -64,7 +64,12 @@ public class FeatureController extends BaseController<Feature, FeatureWrapper, L
|
|
|
Response response = new Response();
|
|
|
//获取入参中的特征信息
|
|
|
FeatureAnalyze fa = new FeatureAnalyze();
|
|
|
- List<Map<String, Object>> symptomsList = fa.start(text, FeatureType.SYMPTOM);
|
|
|
+ List<Map<String, Object>> symptomsList_symptom = fa.start(text, FeatureType.SYMPTOM);
|
|
|
+ List<Map<String, Object>> symptomsList_diag = fa.start(text, FeatureType.DIAG);
|
|
|
+
|
|
|
+ List<Map<String, Object>> symptomsList = new ArrayList<>();
|
|
|
+ symptomsList.addAll(symptomsList_symptom);
|
|
|
+ symptomsList.addAll(symptomsList_diag);
|
|
|
response.setData(symptomsList);
|
|
|
return response;
|
|
|
}
|