Natural Language Understanding from IBM Watson provides a number of APIs for text analysis through natural language processing. The APIs are able to analyze text, and understand a wide variety of characteristics, including sentiment, entity, emotion, keyword, concept tagging, language, and taxonomy.
The IBM Watson Natural Language Understanding block lets you analyze and run functions on your data streams, with all computation taking place in the network. For example, analyze chat messages coming through a customer support app, gauge emotion or detect language, and filter those messages to a specific representative. Your data streams just got way smarter.
The sentiment and context analysis block uses the IBM Watson Natural Language Understanding to analyze text and execute functions based on the sentiment or emotion of that message. This is done in an after-publish event handler. The sentiment analysis for each message is saved in the PubNub distributed data store. The session sentiment is calculated as an average and is published on an output sentiment channel.
Publish this data on the input channel.
{ "text" : "Feeling happy", "session_id" : "episode1" }
The sentiment average is added to the message.
{ "session_id": "episode1", "session_sentiment": { "overall": 3.1678750000000004, "positive": { "count": 13, "avg": 0.6078368461538461 }, "negative": { "count": 8, "avg": -0.5917505 }, "neutral": { "count": 2, "avg": null } } }
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.
Add a natural language interface or chatbot to automate interactions with...
Learn moreTranslate and publish text in real time for 11 different languages
Learn moreDetect abusive content, sentiment analysis, and tagging/categorization in...
Learn more