You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by Joe Kumar <jo...@gmail.com> on 2010/10/14 14:57:26 UTC

Error in lda reuters example ?

Team,

When I was trying the reuters examples using lda (./bin/mahout lda -i
./examples/bin/work/reuters-out-seqdir-sparse/tf-vectors -o
./examples/bin/work/reuters-lda -k 20 -v 50000 -ow -x 20)
encountered the below exception.

Exception in thread "main" java.lang.NullPointerException
at
org.apache.mahout.clustering.lda.LDADriver.runIteration(LDADriver.java:259)
at org.apache.mahout.clustering.lda.LDADriver.run(LDADriver.java:174)
at org.apache.mahout.clustering.lda.LDADriver.run(LDADriver.java:152)
at org.apache.mahout.clustering.lda.LDADriver.main(LDADriver.java:78)

I've to run to office and so havent fully analyzed the issue but thought
i'll quickly post it incase someone is aware of the solution.
As far as i saw it looks like conf.set(STATE_IN_KEY, stateIn.toString()); is
throwing this NPE because object conf is null.
We are setting the conf object by calling getConf()

If anyone is aware of this issue please share the details for fix.

regards
Joe.

Re: Error in lda reuters example ?

Posted by Joe Kumar <jo...@gmail.com>.
It was a version issue. All works good now.

On Thu, Oct 14, 2010 at 8:57 AM, Joe Kumar <jo...@gmail.com> wrote:

> Team,
>
> When I was trying the reuters examples using lda (./bin/mahout lda -i
> ./examples/bin/work/reuters-out-seqdir-sparse/tf-vectors -o
> ./examples/bin/work/reuters-lda -k 20 -v 50000 -ow -x 20)
> encountered the below exception.
>
> Exception in thread "main" java.lang.NullPointerException
> at
> org.apache.mahout.clustering.lda.LDADriver.runIteration(LDADriver.java:259)
>  at org.apache.mahout.clustering.lda.LDADriver.run(LDADriver.java:174)
>  at org.apache.mahout.clustering.lda.LDADriver.run(LDADriver.java:152)
>  at org.apache.mahout.clustering.lda.LDADriver.main(LDADriver.java:78)
>
> I've to run to office and so havent fully analyzed the issue but thought
> i'll quickly post it incase someone is aware of the solution.
> As far as i saw it looks like conf.set(STATE_IN_KEY, stateIn.toString());
> is throwing this NPE because object conf is null.
> We are setting the conf object by calling getConf()
>
> If anyone is aware of this issue please share the details for fix.
>
> regards
> Joe.
>