Created method for computing similarity between query sentence and
sentence in a document.