Generalized Term Similarity for Feature Selection in Text Classification Using QP