|
@@ -239,15 +239,10 @@ public class RankStrategy4RegionMergeModelV562 extends RankStrategy4RegionMergeM
|
|
if (!tags.isEmpty()) {
|
|
if (!tags.isEmpty()) {
|
|
Future<Pair<String, Double[]>> future = ThreadPoolFactory.defaultPool().submit(() -> {
|
|
Future<Pair<String, Double[]>> future = ThreadPoolFactory.defaultPool().submit(() -> {
|
|
Double[] doubles = null;
|
|
Double[] doubles = null;
|
|
- log.info("abexpcpde={} word2vecExp={}", JSONUtils.toJson(param.getAbExpCodes()), word2vecExp);
|
|
|
|
if (param.getAbExpCodes().contains(word2vecExp)) {
|
|
if (param.getAbExpCodes().contains(word2vecExp)) {
|
|
doubles = ExtractorUtils.funcC34567ForTagsNew(tags, title);
|
|
doubles = ExtractorUtils.funcC34567ForTagsNew(tags, title);
|
|
- log.info("funcC34567ForTags new\ttags={}\ttitle={}\tscores={}", tags, title,
|
|
|
|
- JSONUtils.toJson(doubles));
|
|
|
|
} else {
|
|
} else {
|
|
doubles = ExtractorUtils.funcC34567ForTags(tags, title);
|
|
doubles = ExtractorUtils.funcC34567ForTags(tags, title);
|
|
- log.info("funcC34567ForTags old\ttags={}\ttitle={}\tscores={}", tags, title,
|
|
|
|
- JSONUtils.toJson(doubles));
|
|
|
|
}
|
|
}
|
|
return Pair.create(key, doubles);
|
|
return Pair.create(key, doubles);
|
|
});
|
|
});
|
|
@@ -273,12 +268,8 @@ public class RankStrategy4RegionMergeModelV562 extends RankStrategy4RegionMergeM
|
|
Double[] doubles = null;
|
|
Double[] doubles = null;
|
|
if (param.getAbExpCodes().contains(word2vecExp)) {
|
|
if (param.getAbExpCodes().contains(word2vecExp)) {
|
|
doubles = ExtractorUtils.funcC34567ForTagsNew(tags, title);
|
|
doubles = ExtractorUtils.funcC34567ForTagsNew(tags, title);
|
|
- log.info("funcC34567ForTagsNew\ttags={}\ttitle={}\tscores={}", tags, title,
|
|
|
|
- JSONUtils.toJson(doubles));
|
|
|
|
} else {
|
|
} else {
|
|
doubles = ExtractorUtils.funcC34567ForTags(tags, title);
|
|
doubles = ExtractorUtils.funcC34567ForTags(tags, title);
|
|
- log.info("funcC34567ForTags\ttags={}\ttitle={}\tscores={}", tags, title,
|
|
|
|
- JSONUtils.toJson(doubles));
|
|
|
|
}
|
|
}
|
|
featureMap.put(name + "_" + key_time + "_matchnum", doubles[0]);
|
|
featureMap.put(name + "_" + key_time + "_matchnum", doubles[0]);
|
|
featureMap.put(name + "_" + key_time + "_maxscore", doubles[1]);
|
|
featureMap.put(name + "_" + key_time + "_maxscore", doubles[1]);
|