|
@@ -49,9 +49,9 @@ public class CFRovnRecallStrategyV1 implements RecallStrategy {
|
|
|
try{
|
|
|
vids = Arrays.stream(vfMap.getOrDefault("videoid_arr", "").split(","))
|
|
|
.filter(s -> !s.trim().isEmpty() && s.matches("-?\\d+"))
|
|
|
- .map(Long::valueOf).limit(20).collect(Collectors.toList());
|
|
|
+ .map(Long::valueOf).collect(Collectors.toList());
|
|
|
scores = Arrays.stream(vfMap.getOrDefault("score_arr", "").split(","))
|
|
|
- .map(Double::valueOf).limit(20).collect(Collectors.toList());
|
|
|
+ .map(Double::valueOf).collect(Collectors.toList());
|
|
|
}catch(Exception e){
|
|
|
log.error(String.format("json parse is wrong in {}, key={}, error={}", CLASS_NAME, value1, e));
|
|
|
vids = new ArrayList<>();
|