Hi Ted,

Don't worry, I've already solved it.

I made a mistake when I tried to pass the "analyzer" parameter, because
rather than use a correct Analyzer I put an invalid value
"SequenceFileIterator"

Thanks

2012/7/11 Ted Dunning <[email protected]>

> Which version of Mahout are you running?
>
> On Wed, Jul 11, 2012 at 7:09 AM, xulufcb <[email protected]> wrote:
>
> > I've just generated the model and i'm trying to run classifier by:
> >
> >  mahout org.apache.mahout.classifier.Classify -m /tmp/mahout/20news-model
> > --classify /tmp/txtToClassified  -e  UTF-8 --analyzer
> SequenceFileIterator
> > --defaultCat unknown -ng 1 -type bayes -source hdfs
> >
> > But It throws an Exception.
> >
> > Running on hadoop, using HADOOP_HOME=/usr/lib/hadoop
> > HADOOP_CONF_DIR=/etc/hadoop-0.20/conf
> > MAHOUT-JOB: /usr/lib/mahout/mahout-examples-0.5-cdh3u3-job.jar
> > 12/07/11 13:34:59 WARN driver.MahoutDriver: No
> > org.apache.mahout.classifier.Classify.props found on classpath, will use
> > command-line arguments only
> > 12/07/11 13:34:59 INFO classifier.Classify: Loading model from:
> > {basePath=/tmp/mahout/20news-model, gramSize=1}
> > 12/07/11 13:34:59 INFO classifier.Classify: Using Bayes Classifier
> > 12/07/11 13:35:00 INFO io.SequenceFileModelReader: Read 50000 feature
> > weights
> > 12/07/11 13:35:00 INFO io.SequenceFileModelReader: Read 100000 feature
> > weights
> > 12/07/11 13:35:00 INFO io.SequenceFileModelReader: 193370.88331085676
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore:
> rec.sport.baseball
> > -129829.34738930254 531784.7805631821 -0.24413889252679982
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore: sci.crypt
> > -193023.42370049533 531784.7805631821 -0.3629728242618669
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore: rec.sport.hockey
> > -167853.61597388217 531784.7805631821 -0.3156420080245964
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore:
> talk.politics.guns
> > -203524.014897408 531784.7805631821 -0.3827187658170052
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore:
> > soc.religion.christian -163900.92587138564 531784.7805631821
> > -0.3082091324573219
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore: sci.electronics
> > -142854.1677345925 531784.7805631821 -0.26863154598614886
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore:
> > comp.os.ms-windows.misc -531784.7805631821 531784.7805631821 -1.0
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore: misc.forsale
> > -143454.70176448984 531784.7805631821 -0.2697608261984583
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore:
> talk.religion.misc
> > -139428.73484148504 531784.7805631821 -0.2621901565024562
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore: alt.atheism
> > -139569.06867597546 531784.7805631821 -0.2624540486626301
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore: comp.windows.x
> > -178029.10523376046 531784.7805631821 -0.33477660839638973
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore:
> > talk.politics.mideast -193075.00789450994 531784.7805631821
> > -0.36306982627452317
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore:
> > comp.sys.ibm.pc.hardware -138410.02049984262 531784.7805631821
> > -0.2602745049477736
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore:
> > comp.sys.mac.hardware -125200.99274388677 531784.7805631821
> > -0.23543545682389358
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore: sci.space
> > -192437.0009266271 531784.7805631821 -0.3618700797018455
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore: rec.motorcycles
> > -143142.20855440624 531784.7805631821 -0.26917319522159455
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore: rec.autos
> > -141800.9754990954 531784.7805631821 -0.26665106013173656
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore: comp.graphics
> > -166882.18654471828 531784.7805631821 -0.31381527385568114
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore:
> talk.politics.misc
> > -165196.84193278523 531784.7805631821 -0.3106460507535303
> > 12/07/11 13:35:02 INFO datastore.InMemoryBayesDatastore: sci.med
> > -192698.5183245711 531784.7805631821 -0.36236185270382393
> > Exception in thread "main" java.lang.ClassNotFoundException:
> > SequenceFileIterator
> >         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> >
> > Thanks
> >
> > --
> > View this message in context:
> > http://lucene.472066.n3.nabble.com/Classifying-tp3994392.html
> > Sent from the Mahout User List mailing list archive at Nabble.com.
> >
>

Reply via email to