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 2008/11/01 18:37:59 UTC
svn commit: r709730 -
/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/BayesFileFormatter.java
Author: gsingers
Date: Sat Nov 1 10:37:59 2008
New Revision: 709730
URL: http://svn.apache.org/viewvc?rev=709730&view=rev
Log:
analyzer and charset should not be required
Modified:
lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/BayesFileFormatter.java
Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/BayesFileFormatter.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/BayesFileFormatter.java?rev=709730&r1=709729&r2=709730&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/BayesFileFormatter.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/BayesFileFormatter.java Sat Nov 1 10:37:59 2008
@@ -263,11 +263,11 @@
abuilder.withName("label").withMinimum(1).withMaximum(1).create()).
withDescription("The label of the file").withShortName("l").create();
- Option analyzerOpt = obuilder.withLongName("analyzer").withRequired(true).withArgument(
+ Option analyzerOpt = obuilder.withLongName("analyzer").withArgument(
abuilder.withName("analyzer").withMinimum(1).withMaximum(1).create()).
withDescription("The fully qualified class name of the analyzer to use. Must have a no-arg constructor. Default is the StandardAnalyzer").withShortName("a").create();
- Option charsetOpt = obuilder.withLongName("charset").withRequired(true).withArgument(
+ Option charsetOpt = obuilder.withLongName("charset").withArgument(
abuilder.withName("charset").withMinimum(1).withMaximum(1).create()).
withDescription("The character encoding of the input file").withShortName("c").create();