IBM Interview Question

Explain Text Categorization as a generative learning task.