How can we classify text in to given specific number of clusters in python? I'm aware that the number of clusters can be specified using some mechanisms like k-means but I need to classify the given to specific categories.
Ex: I'm having a corpus containing newspaper articles and I want to cluster them pertaining to sports, foreign and local.
Is there anyway to achieve this in python? I've googled but could not find a good match.
Any help in this regard is highly appreciated.
Thanks in advance!!