Hi Petar, I remember doing this. But I do not have the code. There is a class called NamedVector, which is a Wrapper over vector. can you try that ? So for name you can provide some unique string.
-Abin On Tue, Dec 27, 2011 at 9:40 AM, petar.mitrovic [via Lucene] < [email protected]> wrote: > Hi Abin, > > Thank you for your reply. > > As I mentioned, I have already tried to iterate over the sequence file as > you suggested. But this does not solve my essential problem which is how to > get article ids from the same cluster (not vectors). Or at least I can not > see how can I use it. > > Maybe I can extract non-zero elements from the vector data and create > Lucene query to find appropriate article. But this seems like big overhead > to me. Instead of that, I am thinking of implementing my own cluster writer > which will store pairs like {clusterId, articleId} instead of {clusterId, > Vector}. > > Any clarification on your idea would be appreciated, as well as any other > suggestion. > > Regards, > Petar > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://lucene.472066.n3.nabble.com/How-to-determine-which-cluster-an-item-belongs-to-tp3613013p3614449.html > To unsubscribe from Apache Mahout, click > here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=630995&code=bWFpbDJhYmluQGdtYWlsLmNvbXw2MzA5OTV8LTk4NjE5MjkxOA==> > . > NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > ----- Abin Varghese Software Engineer NY -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-determine-which-cluster-an-item-belongs-to-tp3613013p3614535.html Sent from the Mahout User List mailing list archive at Nabble.com.
