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 2013/06/02 16:04:23 UTC
svn commit: r1488713 - in /mahout/trunk: CHANGELOG
integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java
Author: robinanil
Date: Sun Jun 2 14:04:22 2013
New Revision: 1488713
URL: http://svn.apache.org/r1488713
Log:
MAHOUT-993 Some vector dumper flags are expecting arguments (tom pierce)
Modified:
mahout/trunk/CHANGELOG
mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java
Modified: mahout/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/mahout/trunk/CHANGELOG?rev=1488713&r1=1488712&r2=1488713&view=diff
==============================================================================
--- mahout/trunk/CHANGELOG (original)
+++ mahout/trunk/CHANGELOG Sun Jun 2 14:04:22 2013
@@ -2,6 +2,8 @@ Mahout Change Log
Release 0.8 - unreleased
+ MAHOUT-993: Some vector dumper flags are expecting arguments. (Andrew Look via robinanil)
+
MAHOUT-1228: Cleanup .gitignore (Stevo Slavic via ssc)
MAHOUT-1047: CVB hangs after completion (Angel Martinez Gonzalez via smarthi)
Modified: mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java
URL: http://svn.apache.org/viewvc/mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java?rev=1488713&r1=1488712&r2=1488713&view=diff
==============================================================================
--- mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java (original)
+++ mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java Sun Jun 2 14:04:22 2013
@@ -55,8 +55,7 @@ public final class VectorDumper extends
private static final Logger log = LoggerFactory.getLogger(VectorDumper.class);
- private VectorDumper() {
- }
+ private VectorDumper() {}
@Override
public int run(String[] args) throws Exception {
@@ -71,19 +70,18 @@ public final class VectorDumper extends
*/
addInputOption();
addOutputOption();
- addOption("useKey", "u", "If the Key is a vector than dump that instead", false);
- addOption("printKey", "p", "Print out the key as well, delimited by tab (or the value if useKey is true", false);
+ addOption("useKey", "u", "If the Key is a vector than dump that instead");
+ addOption("printKey", "p", "Print out the key as well, delimited by tab (or the value if useKey is true");
addOption("dictionary", "d", "The dictionary file.", false);
addOption("dictionaryType", "dt", "The dictionary file type (text|seqfile)", false);
- addOption("csv", "c", "Output the Vector as CSV. Otherwise it substitutes in the terms for vector cell entries",
- false);
+ addOption("csv", "c", "Output the Vector as CSV. Otherwise it substitutes in the terms for vector cell entries");
addOption("namesAsComments", "n", "If using CSV output, optionally add a comment line for each NamedVector "
- + "(if the vector is one) printing out the name", false);
- addOption("nameOnly", "N", "Use the name as the value for each NamedVector (skip other vectors)", false);
+ + "(if the vector is one) printing out the name");
+ addOption("nameOnly", "N", "Use the name as the value for each NamedVector (skip other vectors)");
addOption("sortVectors", "sort", "Sort output key/value pairs of the vector entries in abs magnitude "
- + "descending order", false);
- addOption("quiet", "q", "Print only file contents", false);
- addOption("sizeOnly", "sz", "Dump only the size of the vector", false);
+ + "descending order");
+ addOption("quiet", "q", "Print only file contents");
+ addOption("sizeOnly", "sz", "Dump only the size of the vector");
addOption("numItems", "ni", "Output at most <n> vecors", false);
addOption("vectorSize", "vs", "Truncate vectors to <vs> length when dumping (most useful when in"
+ " conjunction with -sort", false);