Skip to content

Commit 534d20b

Browse files
committed
Merge branch 'master' of github.com:EventRegistry/event-registry-python
# Conflicts: # CHANGELOG.md # eventregistry/QueryArticles.py # eventregistry/_version.py # eventregistry/tests/TestAnalytics.py
2 parents 62a1dcd + d00b072 commit 534d20b

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,21 @@
99
**Updated**
1010

1111
- 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
1412
- `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.
1613
- Changed some defaults in the returned data. When searching articles, we now by default return article image and sentiment.
1714

1815

16+
## [v8.5.1]() (2018-12-12)
17+
18+
**Updated**
19+
20+
- Analytics. updated `trainTopicOnTweets()`, `trainTopicClearTopic()` and `trainTopicGetTrainedTopic()` methods in the `Analytics` class.
21+
- `QueryArticles.initWithComplexQuery()` was updated - the parameter `dataType` was removed (since the `dataType` value should be provided in the `$filter` section of the query)
22+
- `TopicPage` now supports setting also the source rank percentile
23+
- `Analytics.extractArticleInfo` now also supports setting the headers and cookies to be used when making the requests
24+
25+
26+
1927
## [v8.5]() (2018-08-29)
2028

2129
**Added**

eventregistry/QueryArticles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def initWithComplexQuery(query):
287287
@param query: complex query as ComplexArticleQuery instance, string or a python dict
288288
"""
289289
q = QueryArticlesIter()
290-
290+
291291
# provided an instance of ComplexArticleQuery
292292
if isinstance(query, ComplexArticleQuery):
293293
q._setVal("query", json.dumps(query.getQuery()))

eventregistry/tests/TestAnalytics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def testTrainTopic(self):
8181
analytics.trainTopicAddDocument(uri, "Emmanuel Macron’s climate commitment to “make this planet great again” has come under attack after his environment minister dramatically quit, saying the French president was not doing enough on climate and other environmental goals.")
8282
analytics.trainTopicAddDocument(uri, "Theresa May claimed that a no-deal Brexit “wouldn’t be the end of the world” as she sought to downplay a controversial warning made by Philip Hammond last week that it would cost £80bn in extra borrowing and inhibit long-term economic growth.")
8383
# finish training of the topic
84-
ret = analytics.trainTopicGetTrainedTopic(uri, ignoreConceptTypes="wiki")
84+
ret = analytics.trainTopicFinishTraining(uri, ignoreConceptTypes="wiki")
8585
assert ret and "topic" in ret
8686
topic = ret["topic"]
8787
assert "concepts" in topic and len(topic["concepts"]) > 0

0 commit comments

Comments
 (0)