You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by balkiprasanna <ba...@gmail.com> on 2011/05/19 14:18:08 UTC

How to pass argument to SparseVectorsFromSequenceFiles ...

Hi, 

I am currently working on conversion of text to vectors. I want to know how
to pass input directory/ output directory as parameter to
SparseVectorsFromSequenceFiles using java program. We generally pass the
name of the argument in run the time. However for this class (not this class
alone, most of the class in Mahout has been finalized and has private
constructor) I am able to pass the argument using main method. But I am not
able to convert the input file which is sequence file to vector. Can anyone
tell me how to pass argument with options so as to distinguish the
parameters. I also used string1 = "-i or --input name of input directory",
string2="-o or --output name of directory" and passed it to main method. But
I am not getting output. Can someone help me with this issue. I know I am
missing something. But I want to know what exactly I should do to run the
java progam.



--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-pass-argument-to-SparseVectorsFromSequenceFiles-tp2961050p2961050.html
Sent from the Mahout Developer List mailing list archive at Nabble.com.