how to calculate similarity between a query and documents?
<p>I have a set of documents and i have calculate both </p>

<ul>
<li>Term -Frequency score</li>
<li>Inverse-Frequency Score</li>
<li>TF/IDF score</li>
</ul>

<p>Now i need to calculate the similarity between a specific query and a document which will produce a score that will rank the document from the highest similarity to the lowest similarity towards the query. </p>

<p>I have search for a lot of information but i do no understand the formula. </p>

<p>source : <a href="http://en.wikipedia.org/wiki/Vector_space_model" rel="nofollow">http://en.wikipedia.org/wiki/Vector_space_model</a></p>

<p>Can anyone guide me ? I just need to know how to proceed from my current progress. </p>
