Ranking paraphrases in context