-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathTweetLabel.java
More file actions
32 lines (26 loc) · 931 Bytes
/
TweetLabel.java
File metadata and controls
32 lines (26 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package uk.ac.cam.ha293.tweetlabel;
import uk.ac.cam.ha293.tweetlabel.classify.AlchemyClassifier;
import uk.ac.cam.ha293.tweetlabel.classify.CalaisClassifier;
import uk.ac.cam.ha293.tweetlabel.classify.TextwiseClassifier;
public class TweetLabel {
public static void init() {
Tools.init();
AlchemyClassifier.init();
CalaisClassifier.init();
TextwiseClassifier.init();
}
public static void main(String args[]) {
TweetLabel.init();
//Place API calls here to do topic modeling
//...
//eg:
/*
Corpus corpus = Corpus.loadLabelled("alchemy", "allprofiles-unstemmed-alchemy-top3");
LLDATopicModel llda = new LLDATopicModel(corpus,1000,100,0,1,0.01);
llda.runCVGibbsSampling(0, 9);
llda.printDocumentsVerbose(10);
*/
//Otherwise, warn user application is currently doing nothing:
System.out.println("Application not configured to perform topic modeling.");
}
}