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
- docs
str
document string
- topic_model
gensim model
topic model
- dictionary
gensim dictionary
Bag-of-Words dictionary for corpus, important for determining topics of new documents
- docs
- Returns
- topics_df
pandas.DataFrame
dataframe of topic id and score
- topics_df