mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allan Roberto Avendano Sudario <aaven...@fiec.espol.edu.ec>
Subject Creating Vectors from Text
Date Wed, 01 Jul 2009 23:20:41 GMT
Regards Community,
Someone know how to execute the code that create vector from text? This
message show me java, when I try to run this:

 java -cp $CLASSPATH org.apache.mahout.utils.vectors.Driver --dir
~/Desktop/crawlSite/index  --field body --dictOut ~/Desktop/dict/dict.txt
--output ~/Desktop/dict/out.txt --max 50

....

 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
09/07/01 18:02:32 INFO compress.CodecPool: Got brand-new compressor
Exception in thread "main" java.lang.NullPointerException
        at
org.apache.mahout.utils.vectors.lucene.LuceneIteratable$TDIterator.next(LuceneIteratable.java:111)
        at
org.apache.mahout.utils.vectors.lucene.LuceneIteratable$TDIterator.next(LuceneIteratable.java:82)
        at
org.apache.mahout.utils.vectors.io.SequenceFileVectorWriter.write(SequenceFileVectorWriter.java:25)
        at org.apache.mahout.utils.vectors.Driver.main(Driver.java:204)


Thanks!

-- 
Allan AvendaƱo S.
Home: 04 2 800 692
Cell: 09 700 42 48

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message