mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Harrington <>
Subject Russian Analyzer error
Date Wed, 13 Feb 2013 14:49:28 GMT
Hi all,

I'm having some trouble using a RussianAnalyzer in Mahout, I thought this would suffice

RussianAnalyzer analyzer = new RussianAnalyzer(Version.LUCENE_31); 
DocumentProcessor.tokenizeDocuments(new Path(inputDir), analyzer.getClass().asSubclass(Analyzer.class),
tokenizedPath, conf);

but it throws this error.

java.lang.IllegalStateException: java.lang.NoSuchMethodException:<init>()
	at org.apache.mahout.common.ClassUtils.instantiateAs(
	at org.apache.mahout.common.ClassUtils.instantiateAs(
	at org.apache.mahout.vectorizer.document.SequenceFileTokenizerMapper.setup(
	at org.apache.hadoop.mapred.MapTask.runNewMapper(
	at org.apache.hadoop.mapred.LocalJobRunner$
Caused by: java.lang.NoSuchMethodException:<init>()
	at java.lang.Class.getConstructor0(
	at java.lang.Class.getConstructor(
	at org.apache.mahout.common.ClassUtils.instantiateAs(
	... 6 more

Since this happens with various other analyzers (FrenchAnalyzer , DutchAnalyzer, etc) I figure
I must be going about this in the wrong way. 

Any advice?
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message