mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: Creating Vectors from Text
Date Thu, 02 Jul 2009 03:35:52 GMT
Is there any more information around the exception?

How did you create your Lucene index?  Does the body field exist and  
does it have Term Vectors stored?


On Jul 1, 2009, at 7:20 PM, Allan Roberto Avendano Sudario wrote:

> 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

--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
using Solr/Lucene:
http://www.lucidimagination.com/search


Mime
View raw message