You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Thomas <th...@gmail.com> on 2012/10/10 18:10:21 UTC
How to create Vectors from a tokenStream
Hello,
I have built a Naive Bayes model from my Solr's index
and I am now trying to classify documents
as they arrive in Solr using an UpdateRequestProcessorFactory.
I was able to retrieve the input field's content and get it through
some Filters and tokenizers.
I have now a tokenStream and I think I should convert it to a Vector
so I can use my NaiveBayesClassifier's method classifyFull(Vector instance).
But I can't figure out how to build this Vector !?
I would like to avoid writing seqfiles if possible.