Language
MonkeyLearn is a text analysis API that allows companies to obtain relevant data from high volumes of text using machine learning models. The platform's users have the ability to create their own customized classification modules using existing data repositories. Out of the box, the service offers pre-built and trained classifiers for sentiment analysis, keyword extraction, and topic classification.
The API is an integral part of the Open Growth SDK, an open source project built on PubNub functions to accelerate business growth through automation. PubNub uses this SDK to intelligently reach out to customers, without having to review the data provided by hand. MonkeyLearn's API makes this process automatic, saving a business time and money. Be sure to set this event handler type as On Request.
Check out the MonkeyLearn Getting Started Articles to get your automated system up and running, to push your business faster. Be sure to set this event handler type as On Request And make HTTP POST requests to it.
This block requires that you sign up for a MonkeyLearn account, which is free to try.
Publish a HTTP POST containing a classifier ID provided by MonkeyLearn, and also your input text on the PubNub channel. The input_text
can be a single string of text or an array of strings for a aggregate API call.
{ "classifier": "cl_Jx8qzYJh", "input_text": "I love butterflies because they are pretty." }
{ "body": "[{\"category_id\":54863118,\"probability\":0.998,\"label\":\"Positive\"}]", "status": 200, "headers": { "content-type": "application/json; charset=utf-8" } }
Need help? Contact PubNub Support.
Copyright (c) 2018 PubNub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.