You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by rmx <ru...@hotmail.com> on 2011/07/03 19:54:13 UTC

Re: Using with seq2spars org.apache.lucene.analysis.Analyzer

Please, what I am doing wrong?


trunk$ bin/mahout seq2sparse -i wikipedia-all-cat -o
wikipedia-vectors-analysed -seq -a org.apache.lucene.analysis.Analyzer -ow 
Running on hadoop, using HADOOP_HOME=/usr/local/hadoop
No HADOOP_CONF_DIR set, using /usr/local/hadoop/src/conf 
11/07/03 19:52:50 INFO vectorizer.SparseVectorsFromSequenceFiles: Maximum
n-gram size is: 1
11/07/03 19:52:50 INFO vectorizer.SparseVectorsFromSequenceFiles: Minimum
LLR value: 1.0
11/07/03 19:52:50 INFO vectorizer.SparseVectorsFromSequenceFiles: Number of
reduce tasks: 1
Exception in thread "main" java.lang.IllegalAccessException: Class
org.apache.mahout.vectorizer.SparseVectorsFromSequenceFiles can not access a
member of class org.apache.lucene.analysis.Analyzer with modifiers
"protected"
	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95)
	at java.lang.Class.newInstance0(Class.java:366)
	at java.lang.Class.newInstance(Class.java:325)
	at
org.apache.mahout.vectorizer.SparseVectorsFromSequenceFiles.run(SparseVectorsFromSequenceFiles.java:198)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
	at
org.apache.mahout.vectorizer.SparseVectorsFromSequenceFiles.main(SparseVectorsFromSequenceFiles.java:52)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	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:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:156)


--
View this message in context: http://lucene.472066.n3.nabble.com/Using-with-seq2spars-org-apache-lucene-analysis-Analyzer-tp3108497p3135369.html
Sent from the Mahout User List mailing list archive at Nabble.com.

Re: Using with seq2spars org.apache.lucene.analysis.Analyzer

Posted by Sean Owen <sr...@gmail.com>.
Erm, yes. What is your question?

On Tue, Jul 5, 2011 at 1:30 PM, rmx <ru...@hotmail.com> wrote:

> Is this project still alive??
> Please...
> Thanks
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Using-with-seq2spars-org-apache-lucene-analysis-Analyzer-tp3108497p3140576.html
> Sent from the Mahout User List mailing list archive at Nabble.com.
>

Re: Using with seq2spars org.apache.lucene.analysis.Analyzer

Posted by rmx <ru...@hotmail.com>.
Is this project still alive??
Please...
Thanks

--
View this message in context: http://lucene.472066.n3.nabble.com/Using-with-seq2spars-org-apache-lucene-analysis-Analyzer-tp3108497p3140576.html
Sent from the Mahout User List mailing list archive at Nabble.com.

Re: Using with seq2spars org.apache.lucene.analysis.Analyzer

Posted by vanjor <va...@gmail.com>.
org.apache.lucene.analysis.Analyzer , u have use a wrong analyzer, actually ,
the defualt is the org.apache.lucene.analysis.WhitespaceAnalyzer

--
View this message in context: http://lucene.472066.n3.nabble.com/Using-with-seq2spars-org-apache-lucene-analysis-Analyzer-tp3108497p3245323.html
Sent from the Mahout User List mailing list archive at Nabble.com.