Added sentiment, updates to analytics
Added
- We added sentiment, which can now be used in querying of articles and events. The
QueryArticles
,QueryArticlesIter
,QueryEvents
,QueryEventsIter
constructors now all have additional parametersminSentiment
andmaxSentiment
that 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 theAnalytics
class. 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 theAnalytics
class. QueryArticles.initWithComplexQuery()
was updated - the parameterdataType
was removed (since thedataType
value should be provided in the$filter
section of the query)TopicPage
now supports setting also the source rank percentileAnalytics.extractArticleInfo
now also supports setting the headers and cookies to be used when making the requests