The Wolfram Language is quite powerful and puts a wide variety of algorithms and curated data at your fingertips.
When you’re ready to extend this with any of the 8,000+ algorithms available from Algorithmia, or by hosting your own ML Model written in your preferred language, you can easily do so by calling your Algorithm directly from within Wolfram!
First, we specify the URL of the algorithm we want to run. You can get this from the Algorithm’s page (such as https://algorithmia.com/algorithms/nlp/SentimentAnalysis) under the “Install and Use”> cURL sample – but in most cases it is just “https://api.algorithmia.com/v1/algo/” followed by the algorithm and version you want to use.
Next, we specify the input we want to send to the Algorithm.
Lastly, we set the Authorization and Content-Type headers (your API Key is in your Account Page).
The rest is boilerplate – no need to change it. We just send the JSON-encoded HTTPRequest via URLRead:
The response variable now contains the Algorithm response, for you to use as you wish: