|
@@ -195,11 +195,16 @@ public class ExtractFeature20250218 {
|
|
|
Map<String, Map<String, Object>> featureMaps = new HashMap<>();
|
|
|
featureMaps.put("c7", c7Feature);
|
|
|
featureMaps.put("c8", c8Feature);
|
|
|
+
|
|
|
List<String> indexList = Arrays.asList("share", "return");
|
|
|
+
|
|
|
for (Map.Entry<String, Map<String, Object>> entry : featureMaps.entrySet()) {
|
|
|
Map<String, Object> feature = entry.getValue();
|
|
|
+
|
|
|
for (String index : indexList) {
|
|
|
+
|
|
|
String key = entry.getKey() + "_" + index;
|
|
|
+
|
|
|
if (feature.containsKey(index)) {
|
|
|
Map<String, String[]> cfMap = new HashMap<>();
|
|
|
String[] entries = feature.get(index).toString().split(",");
|
|
@@ -226,7 +231,7 @@ public class ExtractFeature20250218 {
|
|
|
if (StringUtils.isBlank(vid)) {
|
|
|
return;
|
|
|
}
|
|
|
- for (String key : Arrays.asList("c6", "c7")) {
|
|
|
+ for (String key : Arrays.asList("c7", "c8")) {
|
|
|
for (String action : Arrays.asList("share", "return")) {
|
|
|
String featureKey = key + "_" + action;
|
|
|
Map<String, String[]> cfMap = map.getOrDefault(featureKey, new HashMap<>());
|