Finding topics in unstructured text data is a common use case that is easily solved using LDA, a topic modeling algorithm hosted on Algorithmia.
This recipe covers how to use LDA for topic extraction on text documents and then classify new documents to those topics.
For the full blog post related to this recipe, see Use LDA to Classify Text Documents.
Install the Algorithmia client from PyPi:
You’ll also need a free Algorithmia account.
Find this line in the script:
and add in your API key.
How to Classify Documents with LDA
After putting in your own API key to the line above run it in your console environment: