parameterize topic extraction by category