@@ -91,8 +91,8 @@ public class Pipeline {
9191 // placeholder for the topic posfix
9292 private static String TOPIC_NAME = null ;
9393 // placeholder for the used dataset
94- private final static String DATASET = "lastfm " ;
95- private final static String SUBDIR = "/core1 " ;
94+ private final static String DATASET = "twitter " ;
95+ private final static String SUBDIR = "/researchers " ;
9696
9797 public static void main (String [] args ) {
9898 System .out .println ("TagRecommender:\n " + "" +
@@ -116,7 +116,7 @@ public static void main(String[] args) {
116116 //TOPIC_NAME = "lda_500";
117117 //startCfResourceCalculator(dir, path, 1, 20, false, true, false, false, Features.TOPICS);
118118
119- //startSolrHashtagCalculator(dir, "http://kti-social:8938", "researcher", true , true, 24);
119+ //startSolrHashtagCalculator(dir, "http://kti-social:8938", "researcher", false , true, 24);
120120
121121 //BibsonomyProcessor.processUnsortedFile("dc09_core/test_core/", "tas", "dc09_sample_test");
122122 //MovielensProcessor.processFile("000_dataset_dump/tags.dat", "000_dataset_dump/movielens", "000_dataset_dump/ratings.dat");
@@ -134,13 +134,13 @@ public static void main(String[] args) {
134134 //startAllTagRecommenderApproaches(dir, path, true);
135135 //getTrainTestStatistics(path);
136136 //BookmarkSplitter.splitSample(dir + "/tweets", dir + "/twitter_sample", 1, 0, true, false, true, dir + "/white_user.txt");
137- //try { getStatistics(path , false); } catch (Exception e) { e.printStackTrace(); }
137+ //try { getStatistics("sss-eval" , false); } catch (Exception e) { e.printStackTrace(); }
138138 //BookmarkSplitter.drawUserPercentageSample("bib_core/vedran/bib_bibtex", 5);
139139 //createLdaSamples("ml_core/resource/ml_sample", 1, 500, true, true);
140140
141141 // Method Testing -> just uncomment the methods you want to test
142142 // Test the BLL and BLL+MP_r algorithms (= baseline to beat :))
143- //startActCalculator(dir, path, 1, -5 , -5, false, CalculationType.NONE, false);
143+ //startActCalculator(dir, path, 1, 15 , -5, false, CalculationType.NONE, false);
144144
145145 // Test the BLL_AC and BLL_AC+MP_r algorithms (could take a while)
146146
@@ -191,7 +191,7 @@ public static void main(String[] args) {
191191 //startSustainApproach(dir, path, 2.845, 0.5, 6.396, 0.0936, 0, 0, 20, 0.5);
192192
193193 // Engine Testing
194- //startEngineTest("C:/" , "sss_recomm.txt ");
194+ //startEngineTest(null , "sss_recomm");
195195 //startKnowBrainTest("ml_group2");
196196
197197 // Commandline Arguments
@@ -554,10 +554,13 @@ private static void startEngineTest(String path, String filename) {
554554 } catch (Exception e ) {
555555 e .printStackTrace ();
556556 }
557- System .out .println ("Tags for user and resource: " + recEngine .getEntitiesWithLikelihood ("http://sss.eu/302875752153271240/" , "http://sss.eu/31116473812357491143/" , null , 10 , false , null , EntityType .TAG )); // BLLac+MPr
558- System .out .println ("Tags for user: " + recEngine .getEntitiesWithLikelihood ("http://sss.eu/302875752153271240/" , null , null , 10 , false , null , EntityType .TAG )); // BLL
559- System .out .println ("Tags for resource: " + recEngine .getEntitiesWithLikelihood (null , "http://sss.eu/31116473812357491143/" , null , 10 , false , null , EntityType .TAG )); // MPr
560- System .out .println ("Tags MostPopular: " + recEngine .getEntitiesWithLikelihood (null , null , null , 10 , false , null , EntityType .TAG )); // MP
557+ System .out .println ("Tags for user and resource with BLLac+MPr: " + recEngine .getEntitiesWithLikelihood ("http://sss.eu/302875752153271240/" , "http://sss.eu/31116473812357491143/" , null , 10 , false , Algorithm .BLLacMPr , EntityType .TAG )); // BLLac+MPr
558+ System .out .println ("Tags for user and resource with MPur: " + recEngine .getEntitiesWithLikelihood ("http://sss.eu/302875752153271240/" , "http://sss.eu/31116473812357491143/" , null , 10 , false , Algorithm .MPur , EntityType .TAG )); // MPur
559+ System .out .println ("Tags with 3Lcoll: " + recEngine .getEntitiesWithLikelihood ("http://sss.eu/302875752153271240/" , "http://sss.eu/31116473812357491143/" , null , 10 , false , Algorithm .THREELcoll , EntityType .TAG )); // BLLac+MPr
560+ System .out .println ("Tags with MP: " + recEngine .getEntitiesWithLikelihood ("http://sss.eu/302875752153271240/" , "http://sss.eu/31116473812357491143/" , null , 10 , false , Algorithm .MP , EntityType .TAG )); // MPur
561+ //System.out.println("Tags for user: " + recEngine.getEntitiesWithLikelihood("http://sss.eu/302875752153271240/", null, null, 10, false, null, EntityType.TAG)); // BLL
562+ //System.out.println("Tags for resource: " + recEngine.getEntitiesWithLikelihood(null, "http://sss.eu/31116473812357491143/", null, 10, false, null, EntityType.TAG)); // MPr
563+ //System.out.println("Tags MostPopular: " + recEngine.getEntitiesWithLikelihood(null, null, null, 10, false, null, EntityType.TAG)); // MP
561564
562565 System .out .println ("LD - Resources for user (Tags):" + recEngine .getEntitiesWithLikelihood ("http://sss.eu/207091058105385/" , null , null , 10 , false , Algorithm .RESOURCETAGCB , EntityType .RESOURCE )); // CBtags
563566 System .out .println ("Resources for user (CF): " + recEngine .getEntitiesWithLikelihood ("http://sss.eu/207091058105385/" , null , null , 10 , false , null , EntityType .RESOURCE )); // CF
0 commit comments