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].
Topic modeling
Use LDA model to get topic distribution
Report a typo
Enter a number
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.