Corpus-based and Knowledge-based Measures of Text Semantic Similarity