You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**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 parameters `minSentiment` and `maxSentiment` 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()` and `trainTopicGetTrainedTopic()` methods in the `Analytics` class.
- `QueryArticles.initWithComplexQuery()` was updated - the parameter `dataType` was removed (since the `dataType` value should be provided in the `$filter` section of the query)
- `TopicPage` now supports setting also the source rank percentile
- `Analytics.annotate()` method now supports passing custom parameters that should be used when annotating the text.
- `Analytics.extractArticleInfo()` now also supports passing headers and cookies to be used when extracting article info from url.
- Changed some defaults in the returned data. When searching articles, we now by default return article image and sentiment.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,21 @@
1
1
# Change Log
2
2
3
+
## [v8.6]() (2019-02-22)
4
+
5
+
**Added**
6
+
- We added sentiment, which can now be used in querying of articles and events. The `QueryArticles`, `QueryArticlesIter`, `QueryEvents`, `QueryEventsIter` constructors now all have additional parameters `minSentiment` and `maxSentiment` 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.
7
+
- Sentiment was also added as a property in the returned articles and events.
8
+
9
+
**Updated**
10
+
11
+
- Analytics: We updated `trainTopicOnTweets()`, `trainTopicClearTopic()` and `trainTopicGetTrainedTopic()` methods in the `Analytics` class.
12
+
-`QueryArticles.initWithComplexQuery()` was updated - the parameter `dataType` was removed (since the `dataType` value should be provided in the `$filter` section of the query)
13
+
-`TopicPage` now supports setting also the source rank percentile
14
+
-`Analytics.annotate()` method now supports passing custom parameters that should be used when annotating the text.
15
+
-`Analytics.extractArticleInfo()` now also supports passing headers and cookies to be used when extracting article info from url.
16
+
- Changed some defaults in the returned data. When searching articles, we now by default return article image and sentiment.
Copy file name to clipboardExpand all lines: eventregistry/QueryArticles.py
+20-10Lines changed: 20 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ def __init__(self,
37
37
eventFilter="keepAll",
38
38
startSourceRankPercentile=0,
39
39
endSourceRankPercentile=100,
40
+
minSentiment=-1,
41
+
maxSentiment=1,
40
42
dataType="news",
41
43
requestedResult=None):
42
44
"""
@@ -103,6 +105,10 @@ def __init__(self,
103
105
"keepAll" (no filtering, default)
104
106
@param startSourceRankPercentile: starting percentile of the sources to consider in the results (default: 0). Value should be in range 0-90 and divisible by 10.
105
107
@param endSourceRankPercentile: ending percentile of the sources to consider in the results (default: 100). Value should be in range 10-100 and divisible by 10.
108
+
@param minSentiment: minimum value of the sentiment, that the returned articles should have. Range [-1, 1]. Note: setting the value will remove all articles that don't have
109
+
a computed value for the sentiment (all non-English articles)
110
+
@param maxSentiment: maximum value of the sentiment, that the returned articles should have. Range [-1, 1]. Note: setting the value will remove all articles that don't have
111
+
a computed value for the sentiment (all non-English articles)
106
112
@param dataType: what data types should we search? "news" (news content, default), "pr" (press releases), or "blog".
107
113
If you want to use multiple data types, put them in an array (e.g. ["news", "pr"])
108
114
@param requestedResult: the information to return as the result of the query. By default return the list of matching articles
0 commit comments