|
@@ -25,7 +25,7 @@ import java.util.stream.Collectors;
|
|
|
public class NLPRemoteService {
|
|
|
|
|
|
private final CloseableHttpClient client = HttpPoolFactory.nlpPool();
|
|
|
- private static final String scoreListUrl = "http://61.48.133.26:8179/score_list";
|
|
|
+ private static final String scoreListUrl = "http://61.48.133.26:6060/score_list";
|
|
|
|
|
|
public Map<String, Double> score(String accountName, List<Content> contentList) {
|
|
|
long start = System.currentTimeMillis();
|
|
@@ -34,7 +34,7 @@ public class NLPRemoteService {
|
|
|
JSONObject bodyParam = new JSONObject();
|
|
|
bodyParam.put("account_nickname_list", Collections.singletonList(accountName));
|
|
|
bodyParam.put("text_list", titleList);
|
|
|
- bodyParam.put("interest_type", "by_avg");
|
|
|
+ bodyParam.put("interest_type", "avg");
|
|
|
bodyParam.put("sim_type", "mean");
|
|
|
bodyParam.put("rate", 0.1);
|
|
|
int retry = 0;
|