|
@@ -698,7 +698,9 @@ public class RankStrategyBy688 extends RankStrategyBasic {
|
|
|
for (Map.Entry<String, String> entry : featureMap.entrySet()) {
|
|
|
String name = entry.getKey();
|
|
|
if (this.sparseFeatureSet.contains(name)) {
|
|
|
- newFeatureMap.put(name, entry.getValue());
|
|
|
+ if (entry.getValue() != null) {
|
|
|
+ newFeatureMap.put(name, entry.getValue());
|
|
|
+ }
|
|
|
continue;
|
|
|
}
|
|
|
double score = Double.parseDouble(entry.getValue());
|