java - Getting the Vector Space Model (tf-idf) from a query on a lucene index -
I need to get the vector space model (with TF-IDF load) from the result of a Lucene query, and khichadi The figure of the language is how to do it seems that it should be simple, and at this level, maybe one of you might point me in the right direction.
I am trying to understand how to do this for a good time, and either I did not understand that the stuff I have read now (more than needed), or solution The special issue has not been posted. I tried to compute myself directly with the VSM query results, but my solution has a disgusting complexity.
EDIT: For someone else who is stumbling on it, what can I get by indexReader.getTermFreqVector (string field, int.docid) method
Unfortunately This does not work for me because the index I am working on has not stored the word of the frequency vector, so I think I am still looking for more help on this!
Comments
Post a Comment