A Comparative study on text categorization