Cal the score to judge the similarity