if (parts.hasNext()) {
String token = parts.next().trim();
if (!token.isEmpty()) {
float value = LangUtils.parseFloat(token);
if (userIsTag) {
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));
}
}
}
}
if (++count % 1000000 == 0) {