IBM interview question

Explain Text Categorization as a generative learning task.