|
@@ -19,7 +19,6 @@ import org.diagbot.nlp.util.NlpCache;
|
|
import org.diagbot.nlp.util.NlpUtil;
|
|
import org.diagbot.nlp.util.NlpUtil;
|
|
import org.diagbot.pub.api.Response;
|
|
import org.diagbot.pub.api.Response;
|
|
import org.diagbot.pub.jdbc.MysqlJdbc;
|
|
import org.diagbot.pub.jdbc.MysqlJdbc;
|
|
-import org.diagbot.pub.utils.PropertiesUtil;
|
|
|
|
import org.diagbot.pub.web.BaseController;
|
|
import org.diagbot.pub.web.BaseController;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.core.env.Environment;
|
|
import org.springframework.core.env.Environment;
|
|
@@ -29,7 +28,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
-import java.util.*;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
+import java.util.Arrays;
|
|
|
|
+import java.util.HashMap;
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@Controller
|
|
@Controller
|
|
@RequestMapping("/feature")
|
|
@RequestMapping("/feature")
|
|
@@ -148,12 +151,12 @@ public class FeatureController extends BaseController<Feature, FeatureWrapper, L
|
|
Map<String, String> propel = null;
|
|
Map<String, String> propel = null;
|
|
List<Map<String, Object>> data = new ArrayList<>();
|
|
List<Map<String, Object>> data = new ArrayList<>();
|
|
|
|
|
|
- PropertiesUtil propertiesUtil = new PropertiesUtil("nlp.properties");
|
|
|
|
- featureNum = propertiesUtil.getProperty("push.feature.num");
|
|
|
|
|
|
+ /* PropertiesUtil propertiesUtil = new PropertiesUtil("nlp.properties");
|
|
|
|
+ featureNum = propertiesUtil.getProperty("push.feature.num");*/
|
|
FeatureAnalyze sa = new FeatureAnalyze();
|
|
FeatureAnalyze sa = new FeatureAnalyze();
|
|
for (String featureType : featureTypes.split(",")) {
|
|
for (String featureType : featureTypes.split(",")) {
|
|
for (String feature : featureNum.split(",")) {
|
|
for (String feature : featureNum.split(",")) {
|
|
- sa.setFeatureNum(feature);
|
|
|
|
|
|
+ /*sa.setFeatureNum(feature);*/
|
|
for (Info info : docInfos) {
|
|
for (Info info : docInfos) {
|
|
switch (FeatureType.parse(featureType)) {
|
|
switch (FeatureType.parse(featureType)) {
|
|
case SYMPTOM:
|
|
case SYMPTOM:
|