diff --git a/src/applucene/src/com/colloquial/applucene/ClassifyNewsgroups.java b/src/applucene/src/com/colloquial/applucene/ClassifyNewsgroups.java index 2de1e3b..ad276ec 100644 --- a/src/applucene/src/com/colloquial/applucene/ClassifyNewsgroups.java +++ b/src/applucene/src/com/colloquial/applucene/ClassifyNewsgroups.java @@ -161,7 +161,6 @@ void testIndex(File indexDir, File testDir) int[][] confusionMatrix = new int[NEWSGROUPS.length][NEWSGROUPS.length]; - File[] groupsDir = testDir.listFiles(); for (File group : groupsDir) { int postCt = 0; @@ -176,7 +175,6 @@ void testIndex(File indexDir, File testDir) BooleanQuery termsQuery = buildQuery(post.subject() + " " + post.body()); - // only get first-best result TopDocs hits = searcher.search(termsQuery,1); ScoreDoc[] scoreDocs = hits.scoreDocs; @@ -192,10 +190,6 @@ void testIndex(File indexDir, File testDir) } } /*x*/ - // System.out.println("test items for " + groupName + ": " + postCt); - // System.out.printf("%s: %5.3f\n", - // groupName, - // ((confusionMatrix[rowIdx][rowIdx]*1.0d)/(postCt*1.0d))); System.out.print(groupName); for (int i=0; i