code used for paraphrase detection