Compute the cosine similarity between strings.
It is computed as V1.V2/(|V1|*|V2|) where V1 and V2 are vector representation of first and second.
V1.V2/(|V1|*|V2|)
V1
V2
the cosine similarity in the range [0, 1].
[0, 1]
first string to compare.
second string to compare.