acreated function to get top words for a topic