}
public static Set<Double> diversitySet(String topicType, double alpha, long uid) {
Set<Double> valueSet = new HashSet<Double>();
if(topicType.equals("lda")) {
FullLDAClassification c = new FullLDAClassification(uid,1000,100,0,alpha);
for(String cat : c.getCategorySet()) {
valueSet.add(c.getScore(cat));
}
} else if(topicType.equals("alchemy")) {
FullLLDAClassification c = new FullLLDAClassification("alchemy",alpha,uid);
for(String cat : c.getCategorySet()) {
valueSet.add(c.getScore(cat));
}
} else if(topicType.equals("calais")) {
FullLLDAClassification c = new FullLLDAClassification("calais",alpha,uid);
for(String cat : c.getCategorySet()) {
valueSet.add(c.getScore(cat));
}
} else if(topicType.equals("textwise")) {
FullLLDAClassification c = new FullLLDAClassification("textwise",alpha,uid);
for(String cat : c.getCategorySet()) {
valueSet.add(c.getScore(cat));
}
}
return valueSet;
}