itemTags.put(userIDString, new GenericRecommendedItem(itemID, value));
} else if (itemIsTag) {
userTags.put(itemIDString, new GenericRecommendedItem(userID, value));
} else {
if (provider != null) {
IDRescorer rescorer = provider.getRecommendRescorer(new long[] {userID}, null);
if (rescorer != null) {
value = (float) rescorer.rescore(itemID, value);
}
}
data.put(userID, new GenericRecommendedItem(itemID, value));
}
}
// Ignore remove lines
} else {
if (userIsTag) {
itemTags.put(userIDString, new GenericRecommendedItem(itemID, 1.0f));
} else if (itemIsTag) {
userTags.put(itemIDString, new GenericRecommendedItem(userID, 1.0f));
} else {
float value = 1.0f;
if (provider != null) {
IDRescorer rescorer = provider.getRecommendRescorer(new long[] {userID}, null);
if (rescorer != null) {
value = (float) rescorer.rescore(itemID, value);
}
}
data.put(userID, new GenericRecommendedItem(itemID, value));
}
}