You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by ro...@apache.org on 2010/03/04 07:09:56 UTC

svn commit: r918863 - /lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/clustering/lda/LDAPrintTopics.java

Author: robinanil
Date: Thu Mar  4 06:09:56 2010
New Revision: 918863

URL: http://svn.apache.org/viewvc?rev=918863&view=rev
Log:
MAHOUT-320 LDAPrintTopics missed out from the previous commit

Modified:
    lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/clustering/lda/LDAPrintTopics.java

Modified: lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/clustering/lda/LDAPrintTopics.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/clustering/lda/LDAPrintTopics.java?rev=918863&r1=918862&r2=918863&view=diff
==============================================================================
--- lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/clustering/lda/LDAPrintTopics.java (original)
+++ lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/clustering/lda/LDAPrintTopics.java Thu Mar  4 06:09:56 2010
@@ -43,6 +43,7 @@
 import org.apache.hadoop.io.DoubleWritable;
 import org.apache.hadoop.io.SequenceFile;
 import org.apache.mahout.common.CommandLineUtil;
+import org.apache.mahout.common.IntPairWritable;
 import org.apache.mahout.utils.vectors.VectorHelper;
 
 /**
@@ -204,8 +205,8 @@
       Path path = status.getPath();
       SequenceFile.Reader reader = new SequenceFile.Reader(fs, path, job);
       while (reader.next(key, value)) {
-        int topic = key.getX();
-        int word = key.getY();
+        int topic = key.getFirst();
+        int word = key.getSecond();
         
         ensureQueueSize(queues, topic);
         if (word >= 0 && topic >= 0) {