|
@@ -132,7 +132,7 @@ object makedata_i2i_06_itemPred_20241206 {
|
|
|
if (ifFilterCate){
|
|
|
val cate1 = JSON.parseObject(feature).getOrDefault("category1", "无").toString
|
|
|
val cate2 = JSON.parseObject(feature).getOrDefault("category2_1", "无").toString
|
|
|
- !cate1.equals("无") || !cate2.equals("无")
|
|
|
+ !Set("无", "", "unknown").contains(cate1) || !Set("无", "", "unknown").contains(cate2)
|
|
|
}else{
|
|
|
true
|
|
|
}
|