extract_topics function

Apply topic modeling to a corpus