I've figured out what's the problem. I mistakenly set -dt as text, which should 
be sequence file.

On Apr 18, 2012, at 3:12 AM, Huanchen Zhang wrote:

> Hi, 
> 
> After I've done the LDA, I'm using "mahout ldatopics" to obtain the topics, 
> but I get the following errors:
> 
> Exception in thread "main" java.lang.NumberFormatException: For input string: 
> "SEQorg.apache.hadoop.io.Text org.apache.hadoop.io.IntWritable?I??Y??z?"
>       at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>       at java.lang.Integer.parseInt(Integer.java:449)
>       at java.lang.Integer.parseInt(Integer.java:499)
>       at 
> org.apache.mahout.utils.vectors.VectorHelper.loadTermDictionary(VectorHelper.java:191)
>       at 
> org.apache.mahout.utils.vectors.VectorHelper.loadTermDictionary(VectorHelper.java:157)
>       at 
> org.apache.mahout.clustering.lda.LDAPrintTopics.main(LDAPrintTopics.java:121)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at 
> org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
>       at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
>       at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
> 
> Does anyone have some ideas? Thank you !
> 
> Huanchen

Reply via email to