}
Set<Long> noClassifications = new HashSet<Long>();
for(Long uid : Tools.getCSVUserIDs()) {
String topTopic = "";
if(topicType.equals("alchemy")) {
FullAlchemyClassification c = new FullAlchemyClassification(uid);
if(c.getCategorySet().size()==0) {
noClassifications.add(uid);
continue;
}
topTopic = c.getCategorySet().toArray(new String[1])[0];
} else if(topicType.equals("calais")) {
FullCalaisClassification c = new FullCalaisClassification(uid);
if(c.getCategorySet().size()==0) {
noClassifications.add(uid);
continue;
}
topTopic = c.getCategorySet().toArray(new String[1])[0];
if(topTopic.equals("Other") && c.getCategorySet().size() < 2) {
noClassifications.add(uid);
continue;
} else if(topTopic.equals("Other")) {
topTopic = c.getCategorySet().toArray(new String[1])[1];
}
} else if(topicType.equals("textwise")) {
FullTextwiseClassification c = new FullTextwiseClassification(uid,true);
if(c.getCategorySet().size()==0) {
noClassifications.add(uid);
continue;
}
topTopic = c.getCategorySet().toArray(new String[1])[0];
}
if(svm) {
FullSVMClassification svmClassification = new FullSVMClassification(topicType,uid);
String topSVMTopic = svmClassification.getCategorySet().toArray(new String[1])[0];
gtTopicSets.get(topTopic).add(uid);