| Line 36... |
Line 36... |
| 36 |
|
36 |
|
| 37 |
private static final String LEARNED_BULLETS = "LEARNED_BULLETS";
|
37 |
private static final String LEARNED_BULLETS = "LEARNED_BULLETS";
|
| 38 |
private static final String DEFAULT_ENTITY_SCORES = "DEFAULT_ENTITY_SCORES";
|
38 |
private static final String DEFAULT_ENTITY_SCORES = "DEFAULT_ENTITY_SCORES";
|
| 39 |
private static final String FACET_VALUES = "FACET_VALUES";
|
39 |
private static final String FACET_VALUES = "FACET_VALUES";
|
| 40 |
private static final String SLIDE_SCORES = "SLIDE_SCORES";
|
40 |
private static final String SLIDE_SCORES = "SLIDE_SCORES";
|
| - |
|
41 |
private static final String CUSTOM_SLIDE_SCORES = "CUSTOM_SLIDE_SCORES";
|
| 41 |
private static final String CONTENT_GENERATION_TIME = "CONTENT_GENERATION_TIME";
|
42 |
private static final String CONTENT_GENERATION_TIME = "CONTENT_GENERATION_TIME";
|
| 42 |
private static final String INCONSISTENT_ENTITIES = "INCONSISTENT_ENTITIES";
|
43 |
private static final String INCONSISTENT_ENTITIES = "INCONSISTENT_ENTITIES";
|
| 43 |
private static final String HELPDOC_ENTITYIDS = "HELPDOC_ENTITYIDS";
|
44 |
private static final String HELPDOC_ENTITYIDS = "HELPDOC_ENTITYIDS";
|
| 44 |
private static final String RELATED_ACCESSORIES = "RELATED_ACCESSORIES";
|
45 |
private static final String RELATED_ACCESSORIES = "RELATED_ACCESSORIES";
|
| 45 |
private static final String COMPARISON_STATS = "COMPARISON_STATS";
|
46 |
private static final String COMPARISON_STATS = "COMPARISON_STATS";
|
| Line 380... |
Line 381... |
| 380 |
public static Map<Long, Double> getSlideComparisonScores(long entityID) throws Exception{
|
381 |
public static Map<Long, Double> getSlideComparisonScores(long entityID) throws Exception{
|
| 381 |
Map<Long, Map<Long, Double>> slideScores = (Map<Long, Map<Long, Double>>) StorageManager.getStorageManager().getDataObject(CreationUtils.SLIDE_SCORES);
|
382 |
Map<Long, Map<Long, Double>> slideScores = (Map<Long, Map<Long, Double>>) StorageManager.getStorageManager().getDataObject(CreationUtils.SLIDE_SCORES);
|
| 382 |
return slideScores.get(entityID);
|
383 |
return slideScores.get(entityID);
|
| 383 |
}
|
384 |
}
|
| 384 |
|
385 |
|
| - |
|
386 |
/**
|
| - |
|
387 |
*
|
| - |
|
388 |
* @param entityID
|
| - |
|
389 |
* @return
|
| - |
|
390 |
* @throws Exception
|
| - |
|
391 |
*/
|
| - |
|
392 |
@SuppressWarnings("unchecked")
|
| - |
|
393 |
public static Map<Long, Double> getCustomSlideComparisonScores(long entityID) throws Exception{
|
| - |
|
394 |
return (Map<Long, Double>) StorageManager.getStorageManager().getDataObject(CreationUtils.SLIDE_SCORES + entityID);
|
| - |
|
395 |
}
|
| - |
|
396 |
|
| - |
|
397 |
/**
|
| - |
|
398 |
*
|
| - |
|
399 |
* @param entityID
|
| - |
|
400 |
* @return
|
| - |
|
401 |
* @throws Exception
|
| - |
|
402 |
*/
|
| - |
|
403 |
public static void storeCustomSlideComparisonScores(long entityID, Map<Long, Double> customSlideScores) throws Exception{
|
| - |
|
404 |
StorageManager.getStorageManager().storeDataObject(CreationUtils.SLIDE_SCORES + entityID, customSlideScores);
|
| - |
|
405 |
}
|
| - |
|
406 |
|
| 385 |
|
407 |
|
| 386 |
/**
|
408 |
/**
|
| 387 |
*
|
409 |
*
|
| 388 |
* @param finalScoreByEntityID
|
410 |
* @param finalScoreByEntityID
|
| 389 |
* @throws Exception
|
411 |
* @throws Exception
|