Added sentiment, updates to analytics
Added
- We added sentiment, which can now be used in querying of articles and events. The
QueryArticles,QueryArticlesIter,QueryEvents,QueryEventsIterconstructors now all have additional parametersminSentimentandmaxSentimentthat can be used to filter the articles and events. The valid values are between -1 (very negative sentiment) and 1 (very positive sentiment). Value 0 represents neutral sentiment. - Sentiment was also added as a property in the returned articles and events.
Updated
- Analytics: We updated
trainTopicOnTweets(),trainTopicClearTopic()andtrainTopicGetTrainedTopic()methods in theAnalyticsclass. Analytics.annotate()method now supports passing custom parameters that should be used when annotating the text.- Changed some defaults in the returned data. When searching articles, we now by default return article image and sentiment.
- Analytics. updated
trainTopicOnTweets(),trainTopicClearTopic()andtrainTopicGetTrainedTopic()methods in theAnalyticsclass. QueryArticles.initWithComplexQuery()was updated - the parameterdataTypewas removed (since thedataTypevalue should be provided in the$filtersection of the query)TopicPagenow supports setting also the source rank percentileAnalytics.extractArticleInfonow also supports setting the headers and cookies to be used when making the requests