calc_text_sim function

Calculate Text Similarity