Browse Source

相似度评分增加参数及配置

wangyunpeng 9 months ago
parent
commit
fc7d5e31b4

+ 2 - 2
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/remote/NLPRemoteService.java

@@ -38,9 +38,9 @@ public class NLPRemoteService {
     @ApolloJsonValue("${score.interest.type:{}}")
     private Map<String, String> accountScoreInterestTypeMap;
     @ApolloJsonValue("${score.viewCount.filter:{}}")
-    private Map<String, String> accountScoreViewCountFilterMap;
+    private Map<String, Integer> accountScoreViewCountFilterMap;
     @ApolloJsonValue("${score.min.time:{}}")
-    private Map<String, String> accountScoreMinTimeMap;
+    private Map<String, Long> accountScoreMinTimeMap;
 
     private static CloseableHttpClient client = HttpPoolFactory.nlpPool();
     private static final String scoreListUrl = "http://61.48.133.26:6060/score_list";