Commit c9c78abf by hxw

update routine

parent b4158551
...@@ -191,7 +191,7 @@ public class ProcessQuestion { ...@@ -191,7 +191,7 @@ public class ProcessQuestion {
String pair[]; String pair[];
HashSet<String> keyWordSet = null; HashSet<String> keyWordSet = null;
for(String premise:premisesString) { for(String premise:premisesString) {
System.out.println(premise); // System.out.println(premise);
if (premise.equals("") || premise.equals(" ")) if (premise.equals("") || premise.equals(" "))
continue; continue;
pair = premise.split("=", 2); pair = premise.split("=", 2);
...@@ -681,12 +681,12 @@ public class ProcessQuestion { ...@@ -681,12 +681,12 @@ public class ProcessQuestion {
it = curInfoPoint.keySet().iterator(); it = curInfoPoint.keySet().iterator();
String debugInfo = ""; String debugInfo = "";
debugInfo += "(识别:"; debugInfo += "<font color=\"green\">(识别:";
while(it.hasNext()) { while(it.hasNext()) {
key = it.next(); key = it.next();
values = curInfoPoint.get(key); values = curInfoPoint.get(key);
if (values != null && !values[0].equals(" ") && !values[0].equals("") && !skipSet.contains(key)) if (values != null && !values[0].equals(" ") && !values[0].equals("") && !skipSet.contains(key))
debugInfo += (" " + key + ":" + values[0] + " "); debugInfo += (" " + key + ":\'" + values[0] + "\' ");
} }
debugInfo += ")(已知:"; debugInfo += ")(已知:";
it = historyInfoPoint.keySet().iterator(); it = historyInfoPoint.keySet().iterator();
...@@ -695,10 +695,10 @@ public class ProcessQuestion { ...@@ -695,10 +695,10 @@ public class ProcessQuestion {
key = it.next(); key = it.next();
value = historyInfoPoint.get(key); value = historyInfoPoint.get(key);
if(value != null && !value.equals(" ") && !value.equals("") && !skipSet.contains(key)) if(value != null && !value.equals(" ") && !value.equals("") && !skipSet.contains(key))
debugInfo += (" " + key + ":" + value + " "); debugInfo += (" " + key + ":\'" + value + "\' ");
} }
ans.setAnswer( debugInfo + ") " + ans.getAnswer()); ans.setAnswer( debugInfo + ") </font>" + ans.getAnswer());
} }
...@@ -917,6 +917,8 @@ public class ProcessQuestion { ...@@ -917,6 +917,8 @@ public class ProcessQuestion {
String configStr = ""; String configStr = "";
Integer configId; Integer configId;
for(String configIdStr:activateList.split(",")){ for(String configIdStr:activateList.split(",")){
if (!StringUtils.isNumeric(configIdStr))
continue;
configId = Integer.parseInt(configIdStr); configId = Integer.parseInt(configIdStr);
Condition condition = new Condition(); Condition condition = new Condition();
configStr = userinfo.id2config.get(configId); configStr = userinfo.id2config.get(configId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment