|
@@ -17,20 +17,20 @@ public class FeatureV6 {
|
|
|
private static final double log1Scale = 10.0;
|
|
|
private static final List<String> c1Periods = Arrays.asList("72h", "168h");
|
|
|
private static final List<String> b0Periods = Arrays.asList("1h", "3h", "6h", "12h");
|
|
|
- private static final List<String> b1Periods = Arrays.asList("1h", "3h", "24h", "72h", "168h");
|
|
|
+ private static final List<String> b1Periods = Arrays.asList("1h", "3h", "6h", "24h", "72h", "168h");
|
|
|
private static final List<String> b2Periods = Arrays.asList("1h", "3h", "24h");
|
|
|
- private static final List<String> b3Periods = Arrays.asList("24h", "168h");
|
|
|
- private static final List<String> b4Periods = Arrays.asList("1h", "12h");
|
|
|
- private static final List<String> b5Periods = Arrays.asList("1h", "3h", "72h", "168h");
|
|
|
+ private static final List<String> b3Periods = Arrays.asList("24h", "72h", "168h");
|
|
|
+ private static final List<String> b4Periods = Arrays.asList("1h", "3h", "6h", "12h");
|
|
|
+ private static final List<String> b5Periods = Arrays.asList("1h", "3h", "6h", "12h", "24h", "72h", "168h");
|
|
|
private static final List<String> b6Periods = Arrays.asList("1h", "24h");
|
|
|
- private static final List<String> b7Periods = Arrays.asList("24h", "168h");
|
|
|
+ private static final List<String> b7Periods = Arrays.asList("24h", "72h", "168h");
|
|
|
private static final List<String> b8Periods = Arrays.asList("24h");
|
|
|
private static final List<String> b9Periods = Arrays.asList("24h");
|
|
|
private static final List<String> b10Periods = Arrays.asList("1h", "12h");
|
|
|
private static final List<String> b11Periods = Arrays.asList("12h", "168h");
|
|
|
- private static final List<String> b13Periods = Arrays.asList("24h", "168h");
|
|
|
+ private static final List<String> b13Periods = Arrays.asList("1h", "3h", "24h", "72h", "168h");
|
|
|
private static final List<String> videoCateAttrs = Arrays.asList(FeatureUtils.cate1Attr, FeatureUtils.cate2Attr, FeatureUtils.festive1Attr,
|
|
|
- FeatureUtils.channelAttr, FeatureUtils.sourceAttr, FeatureUtils.uidAttr);
|
|
|
+ FeatureUtils.channelAttr, FeatureUtils.sourceAttr, FeatureUtils.uidAttr, FeatureUtils.mergeCate1Attr, FeatureUtils.mergeCate2Attr);
|
|
|
private static final List<String> videoSimAttrs = Arrays.asList("title", "cate2", "cate2_list", "keywords");
|
|
|
private static final List<String> hVideoSimAttrs = Arrays.asList("title");
|
|
|
private static final List<String> cfList = Arrays.asList("share", "return");
|
|
@@ -175,10 +175,6 @@ public class FeatureV6 {
|
|
|
}
|
|
|
featMap.put(prefix + "@total_time", FeatureUtils.log1(Double.parseDouble(videoInfo.getOrDefault("total_time", "0")), log1Scale));
|
|
|
featMap.put(prefix + "@bit_rate", FeatureUtils.log1(Double.parseDouble(videoInfo.getOrDefault("bit_rate", "0")), log1Scale));
|
|
|
- if (videoInfo.containsKey("width") && videoInfo.containsKey("height")) {
|
|
|
- String resolution = String.format("%s@%s@%s_%s", prefix, "wh", videoInfo.get("width"), videoInfo.get("height"));
|
|
|
- featMap.put(resolution, 1.0);
|
|
|
- }
|
|
|
String resolution = FeatureUtils.getResolution(videoInfo);
|
|
|
if (!resolution.isEmpty()) {
|
|
|
String resKey = String.format("%s@%s@%s", prefix, "res", resolution);
|