A generalized framework for text classifications.