Phew,...

The fix for this was a DUD.

In Lucene 4.2.1 the package name for this class was changed to 
org.apache.lucene.analysis.en.EnglishAnalyzer.

Notice 'en' in the package path.

This should work.




________________________________
 From: Chris Harrington <ch...@heystaks.com>
To: user@mahout.apache.org 
Sent: Monday, April 22, 2013 6:08 AM
Subject: seq2sparse in 0.8 throwing class not found for analyzers
 

HI all,

I'm trying to run the seq2sparse tool with one of the lucene analyzers but it 
throws a class not found exception

mahout seq2sparse -i ./contentDataDir/sequenced -o 
./contentDataDir/sparseVectors --namedVector -wt tf -a 
org.apache.lucene.analysis.EnglishAnalyzer

java.lang.ClassNotFoundException: org.apache.lucene.analysis.EnglishAnalyzer

Looking at the output from bin/mahout classpath

it shows that lucene-analyzers-common-4.2.1.jar is in there as a dependancy so 
any idea why is the above throwing an exception.

Reply via email to