Use LDA model to get topic distribution

Report a typo

Download the trained on tripadviser data LDA model. Unzip the folder. Load the lda_model file with the LdaModel.load function.

Get the topic distribution of the 12th text and write the topic which is the most probable for this text as a number (0, 1, 2). Use the corpus of texts we have created before from reviews dataset and index it from model[corpus representation of the 12th text].

Enter a number
___

Create a free account to access the full topic