Permalink
Browse files

adding code

  • Loading branch information...
harryaskham committed May 15, 2011
1 parent f641019 commit f908d938b0674fefd5c172a3fab43c251dc325cf
Showing with 23,695 additions and 0 deletions.
  1. +40 −0 TweetLabel.java
  2. BIN classify/.DS_Store
  3. +65 −0 classify/.svn/all-wcprops
  4. +368 −0 classify/.svn/entries
  5. +30 −0 classify/.svn/text-base/AlchemyClassification.java.svn-base
  6. +174 −0 classify/.svn/text-base/AlchemyClassifier.java.svn-base
  7. +30 −0 classify/.svn/text-base/CalaisClassification.java.svn-base
  8. +148 −0 classify/.svn/text-base/CalaisClassifier.java.svn-base
  9. +139 −0 classify/.svn/text-base/FullAlchemyClassification.java.svn-base
  10. +130 −0 classify/.svn/text-base/FullCalaisClassification.java.svn-base
  11. +148 −0 classify/.svn/text-base/FullTextwiseClassification.java.svn-base
  12. +196 −0 classify/.svn/text-base/NaiveBayes.java.svn-base
  13. +36 −0 classify/.svn/text-base/TextwiseClassification.java.svn-base
  14. +149 −0 classify/.svn/text-base/TextwiseClassifier.java.svn-base
  15. +30 −0 classify/AlchemyClassification.java
  16. +174 −0 classify/AlchemyClassifier.java
  17. +30 −0 classify/CalaisClassification.java
  18. +148 −0 classify/CalaisClassifier.java
  19. +139 −0 classify/FullAlchemyClassification.java
  20. +130 −0 classify/FullCalaisClassification.java
  21. +148 −0 classify/FullTextwiseClassification.java
  22. +196 −0 classify/NaiveBayes.java
  23. +36 −0 classify/TextwiseClassification.java
  24. +149 −0 classify/TextwiseClassifier.java
  25. +53 −0 eval/.svn/all-wcprops
  26. +300 −0 eval/.svn/entries
  27. +821 −0 eval/.svn/text-base/CosineManager.java.svn-base
  28. +188 −0 eval/.svn/text-base/Diversity.java.svn-base
  29. +189 −0 eval/.svn/text-base/Grapher.java.svn-base
  30. +62 −0 eval/.svn/text-base/Pearson.java.svn-base
  31. +135 −0 eval/.svn/text-base/SVMTest.java.svn-base
  32. +495 −0 eval/.svn/text-base/SimilarityMatrix.java.svn-base
  33. +61 −0 eval/.svn/text-base/SimilarityPair.java.svn-base
  34. +174 −0 eval/.svn/text-base/SpearmanRank.java.svn-base
  35. +821 −0 eval/CosineManager.java
  36. +188 −0 eval/Diversity.java
  37. +189 −0 eval/Grapher.java
  38. +62 −0 eval/Pearson.java
  39. +135 −0 eval/SVMTest.java
  40. +495 −0 eval/SimilarityMatrix.java
  41. +61 −0 eval/SimilarityPair.java
  42. +174 −0 eval/SpearmanRank.java
  43. +29 −0 liwc/.svn/all-wcprops
  44. +164 −0 liwc/.svn/entries
  45. +123 −0 liwc/.svn/text-base/FullLIWCClassification.java.svn-base
  46. +447 −0 liwc/.svn/text-base/LIWCDictionary.java.svn-base
  47. +98 −0 liwc/.svn/text-base/LIWCTree.java.svn-base
  48. +49 −0 liwc/.svn/text-base/LIWCWord.java.svn-base
  49. +123 −0 liwc/FullLIWCClassification.java
  50. +447 −0 liwc/LIWCDictionary.java
  51. +98 −0 liwc/LIWCTree.java
  52. +49 −0 liwc/LIWCWord.java
  53. +65 −0 topics/.svn/all-wcprops
  54. +368 −0 topics/.svn/entries
  55. +122 −0 topics/.svn/text-base/FullLDAClassification.java.svn-base
  56. +299 −0 topics/.svn/text-base/FullLLDAClassification.java.svn-base
  57. +203 −0 topics/.svn/text-base/FullSVMClassification.java.svn-base
  58. +530 −0 topics/.svn/text-base/LDATopicModel.java.svn-base
  59. +861 −0 topics/.svn/text-base/LLDATopicModel.java.svn-base
  60. +279 −0 topics/.svn/text-base/LightweightLLDA.java.svn-base
  61. +126 −0 topics/.svn/text-base/MalletLDA.java.svn-base
  62. +440 −0 topics/.svn/text-base/SVMTopicModel.java.svn-base
  63. +81 −0 topics/.svn/text-base/SimpleLLDA.java.svn-base
  64. +110 −0 topics/.svn/text-base/SimpleMalletLDA.java.svn-base
  65. +122 −0 topics/FullLDAClassification.java
  66. +299 −0 topics/FullLLDAClassification.java
  67. +203 −0 topics/FullSVMClassification.java
  68. +530 −0 topics/LDATopicModel.java
  69. +861 −0 topics/LLDATopicModel.java
  70. +279 −0 topics/LightweightLLDA.java
  71. +126 −0 topics/MalletLDA.java
  72. +440 −0 topics/SVMTopicModel.java
  73. +81 −0 topics/SimpleLLDA.java
  74. +110 −0 topics/SimpleMalletLDA.java
  75. +29 −0 twitter/.svn/all-wcprops
  76. +164 −0 twitter/.svn/entries
  77. +334 −0 twitter/.svn/text-base/Profiler.java.svn-base
  78. +133 −0 twitter/.svn/text-base/RawProfile.java.svn-base
  79. +790 −0 twitter/.svn/text-base/SimpleProfile.java.svn-base
  80. +86 −0 twitter/.svn/text-base/SimpleTweet.java.svn-base
  81. +334 −0 twitter/Profiler.java
  82. +133 −0 twitter/RawProfile.java
  83. +790 −0 twitter/SimpleProfile.java
  84. +86 −0 twitter/SimpleTweet.java
  85. +41 −0 types/.svn/all-wcprops
  86. +232 −0 types/.svn/entries
  87. +52 −0 types/.svn/text-base/Category.java.svn-base
  88. +32 −0 types/.svn/text-base/CategoryScore.java.svn-base
  89. +282 −0 types/.svn/text-base/Corpus.java.svn-base
  90. +67 −0 types/.svn/text-base/Document.java.svn-base
  91. +21 −0 types/.svn/text-base/Pair.java.svn-base
  92. +32 −0 types/.svn/text-base/WordScore.java.svn-base
  93. +52 −0 types/Category.java
  94. +32 −0 types/CategoryScore.java
  95. +282 −0 types/Corpus.java
  96. +67 −0 types/Document.java
  97. +21 −0 types/Pair.java
  98. +32 −0 types/WordScore.java
  99. +29 −0 util/.svn/all-wcprops
  100. +164 −0 util/.svn/entries
  101. +43 −0 util/.svn/text-base/AssociatedPress.java.svn-base
  102. +371 −0 util/.svn/text-base/Stemmer.java.svn-base
  103. +69 −0 util/.svn/text-base/Stopwords.java.svn-base
  104. +1,407 −0 util/.svn/text-base/Tools.java.svn-base
  105. +43 −0 util/AssociatedPress.java
  106. +371 −0 util/Stemmer.java
  107. +69 −0 util/Stopwords.java
  108. +1,407 −0 util/Tools.java
View
@@ -0,0 +1,40 @@
+package uk.ac.cam.ha293.tweetlabel;
+
+import java.util.Map;
+
+import uk.ac.cam.ha293.tweetlabel.classify.AlchemyClassifier;
+import uk.ac.cam.ha293.tweetlabel.classify.CalaisClassifier;
+import uk.ac.cam.ha293.tweetlabel.classify.TextwiseClassifier;
+import uk.ac.cam.ha293.tweetlabel.topics.LLDATopicModel;
+import uk.ac.cam.ha293.tweetlabel.topics.LightweightLLDA;
+import uk.ac.cam.ha293.tweetlabel.twitter.Profiler;
+import uk.ac.cam.ha293.tweetlabel.twitter.SimpleProfile;
+import uk.ac.cam.ha293.tweetlabel.types.Corpus;
+import uk.ac.cam.ha293.tweetlabel.util.Tools;
+
+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.");
+
+ }
+
+}
View
Binary file not shown.
View
@@ -0,0 +1,65 @@
+K 25
+svn:wc:ra_dav:version-url
+V 89
+/svn/tweetlabel/!svn/ver/52/trunk/code/TweetLabel/src/uk/ac/cam/ha293/tweetlabel/classify
+END
+CalaisClassifier.java
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/svn/tweetlabel/!svn/ver/24/trunk/code/TweetLabel/src/uk/ac/cam/ha293/tweetlabel/classify/CalaisClassifier.java
+END
+FullAlchemyClassification.java
+K 25
+svn:wc:ra_dav:version-url
+V 121
+/svn/tweetlabel/!svn/ver/120/trunk/code/TweetLabel/src/uk/ac/cam/ha293/tweetlabel/classify/FullAlchemyClassification.java
+END
+TextwiseClassifier.java
+K 25
+svn:wc:ra_dav:version-url
+V 114
+/svn/tweetlabel/!svn/ver/109/trunk/code/TweetLabel/src/uk/ac/cam/ha293/tweetlabel/classify/TextwiseClassifier.java
+END
+NaiveBayes.java
+K 25
+svn:wc:ra_dav:version-url
+V 105
+/svn/tweetlabel/!svn/ver/34/trunk/code/TweetLabel/src/uk/ac/cam/ha293/tweetlabel/classify/NaiveBayes.java
+END
+AlchemyClassifier.java
+K 25
+svn:wc:ra_dav:version-url
+V 113
+/svn/tweetlabel/!svn/ver/123/trunk/code/TweetLabel/src/uk/ac/cam/ha293/tweetlabel/classify/AlchemyClassifier.java
+END
+CalaisClassification.java
+K 25
+svn:wc:ra_dav:version-url
+V 115
+/svn/tweetlabel/!svn/ver/24/trunk/code/TweetLabel/src/uk/ac/cam/ha293/tweetlabel/classify/CalaisClassification.java
+END
+TextwiseClassification.java
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/tweetlabel/!svn/ver/24/trunk/code/TweetLabel/src/uk/ac/cam/ha293/tweetlabel/classify/TextwiseClassification.java
+END
+FullCalaisClassification.java
+K 25
+svn:wc:ra_dav:version-url
+V 120
+/svn/tweetlabel/!svn/ver/120/trunk/code/TweetLabel/src/uk/ac/cam/ha293/tweetlabel/classify/FullCalaisClassification.java
+END
+FullTextwiseClassification.java
+K 25
+svn:wc:ra_dav:version-url
+V 122
+/svn/tweetlabel/!svn/ver/120/trunk/code/TweetLabel/src/uk/ac/cam/ha293/tweetlabel/classify/FullTextwiseClassification.java
+END
+AlchemyClassification.java
+K 25
+svn:wc:ra_dav:version-url
+V 116
+/svn/tweetlabel/!svn/ver/52/trunk/code/TweetLabel/src/uk/ac/cam/ha293/tweetlabel/classify/AlchemyClassification.java
+END
Oops, something went wrong.

0 comments on commit f908d93

Please sign in to comment.