| Line 84... |
Line 84... |
| 84 |
new TreeMap<Long, Map<Long, Double>>();
|
84 |
new TreeMap<Long, Map<Long, Double>>();
|
| 85 |
|
85 |
|
| 86 |
for(Entity entity : entities) {
|
86 |
for(Entity entity : entities) {
|
| 87 |
// Skip categories with value as -1 or categories except mobile phones and tablets
|
87 |
// Skip categories with value as -1 or categories except mobile phones and tablets
|
| 88 |
long parentCategoryId = Catalog.getInstance().getDefinitionsContainer().getCategory(entity.getCategoryID()).getParentCategory().getID();
|
88 |
long parentCategoryId = Catalog.getInstance().getDefinitionsContainer().getCategory(entity.getCategoryID()).getParentCategory().getID();
|
| 89 |
if(entity.getCategoryID() == -1 || parentCategoryId == Utils.MOBILE_ACCESSORIES_CATEGORY || entity.getCategoryID() == Utils.LAPTOPS_CATEGORY) {
|
89 |
if(entity.getCategoryID() == -1 || parentCategoryId == Utils.MOBILE_ACCESSORIES_CATEGORY) {
|
| 90 |
continue;
|
90 |
continue;
|
| 91 |
}
|
91 |
}
|
| 92 |
ExpandedEntity expEntity = new ExpandedEntity(entity);
|
92 |
ExpandedEntity expEntity = new ExpandedEntity(entity);
|
| 93 |
Map<Long, Double> slideScores = this.getSlideScores(expEntity);
|
93 |
Map<Long, Double> slideScores = this.getSlideScores(expEntity);
|
| 94 |
|
94 |
|