mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robina...@apache.org
Subject svn commit: r918863 - /lucene/mahout/trunk/utils/src/main/java/org/apache/mahout/clustering/lda/LDAPrintTopics.java
Date Thu, 04 Mar 2010 06:09:56 GMT
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) {



Mime
View raw message