enlp.understanding.topics.determine_topics

enlp.understanding.topics.determine_topics(doc, topic_model, dictionary)[source]

determine document topics

Determine topics of a document based on topics determined in topic modelling

Parameters
docsstr

document string

topic_modelgensim model

topic model

dictionarygensim dictionary

Bag-of-Words dictionary for corpus, important for determining topics of new documents

Returns
topics_dfpandas.DataFrame

dataframe of topic id and score