A machine learning approach to query generation in plagiarism source retrieval