You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by gs...@apache.org on 2010/01/10 17:33:33 UTC

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

Author: gsingers
Date: Sun Jan 10 16:33:33 2010
New Revision: 897656

URL: http://svn.apache.org/viewvc?rev=897656&view=rev
Log:
number of words is not required, it has a default.

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

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/lda/LDAPrintTopics.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/lda/LDAPrintTopics.java?rev=897656&r1=897655&r2=897656&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/lda/LDAPrintTopics.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/lda/LDAPrintTopics.java Sun Jan 10 16:33:33 2010
@@ -178,7 +178,7 @@
             abuilder.withName("output").withMinimum(1).withMaximum(1).create()).withDescription(
             "Output directory to write top words").withShortName("o").create();
 
-    Option wordOpt = obuilder.withLongName("words").withRequired(true).withArgument(
+    Option wordOpt = obuilder.withLongName("words").withRequired(false).withArgument(
             abuilder.withName("words").withMinimum(0).withMaximum(1).withDefault("20").create()).withDescription(
             "Number of words to print").withShortName("w").create();
 
@@ -228,6 +228,7 @@
       }
 
     } catch (OptionException e) {
+      e.printStackTrace();
       CommandLineUtil.printHelp(group);
     }
   }