//if(fac.getScore(topic) < scoreThreshold) break; //stop getting low-prob topics
topics.add(topic);
count++;
}
}else if(topicType.equals("liwc")) {
FullLIWCClassification flc = new FullLIWCClassification(false,userID);
int topTopics = 3;
int count = 0;
for(String topic : flc.getCategorySet()) {
if(count == topTopics) break;
topics.add(topic);
count++;
}
} else if(topicType.equals("liwcnb")) {
FullLIWCClassification flc = new FullLIWCClassification(true,userID);
int topTopics = 3;
double threshold = 0.2;
int count = 0;
for(String topic : flc.getCategorySet()) {
if(count == topTopics) break;
if(flc.getScore(topic) < threshold) break;
topics.add(topic);
count++;
}
} else {
System.out.println("invalid topic type");