Quantcast
Channel: ProgrammableWeb - Feedback
Viewing all articles
Browse latest Browse all 217

ParallelDots Sentiment Analysis

$
0
0
Sentiment Analysis is contextual mining of text which identifies and extracts subjective information in source material.<br><br> ParallelDots Sentiment analysis provides an accurate analysis of the overall social sentiment of your brand, product or service while monitoring online conversations. incorporated from sources like blogs, articles, forums, consumer reviews, surveys, Twitter, etc. It tells whether the text is positive, negative, or neutral with a range (0-1)<br><br> This code sample is for use with the ParallelDots Sentiment Analysis API.<br><br><pre><code>from paralleldots.config import get_api_key import requests import json<br> def get_sentiment( sentence1 ): apikey = get_api_key() if not apikey == None: if type( sentence1 ) != str: return "Input must be a string." elif sentence1 == "": return "Input string cannot be empty." url = "http://apis.paralleldots.com/sentiment" r = requests.get( url, params={ "apikey": apikey, "sentence1": sentence1 } ) if r.status_code != 200: return "Oops something went wrong ! You can raise an issue at https://github.com/ParallelDots/ParallelDots-Python-API/issues." r = json.loads( r.text ) r["usage"] = "By accessing ParallelDots API or using information generated by ParallelDots API, you are agreeing to be bound by the ParallelDots API Terms of Use: http://www.paralleldots.com/terms-and-conditions" return r else: return "API key does not exist"</code></pre>
Related APIs: 
ParallelDots Sentiment Analysis
Sample Source Code Image: 
Deadpool: 
0
Primary Category: 
Secondary Category: 
Related Platform / Languages: 
Sample Source Code Provider: 
Version: 
1.0
Sample Code Does Not Belong To A Company: 
0

Viewing all articles
Browse latest Browse all 217

Trending Articles