Unsupervised method for docment classification