enlp.understanding.topics.tfidf_topic_modelling

enlp.understanding.topics.tfidf_topic_modelling(docs, no_topics=10)[source]

LDA Topic Modelling with TF-IDF

Parameters
docslist

list of texts (documents)

no_topicsint

number of topics to determine

Returns
tfidf_modelgensim model

topic model

dictionarygensim dictionary

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