A Machine Learning Framework for Authorship Identification From Texts