EventRegistry / event-registry-python

Python package for API access to news articles and events in the Event Registry
http://eventregistry.org/
MIT License
232 stars 54 forks source link

LocationFlag for articles returns 'None' always #14

Closed sruteesh closed 7 years ago

sruteesh commented 8 years ago

I have tried multiple searches using different conceptURI. I have always received 'None' as location even though i set the flag in locationFlags. Please help. Thanks

gregorleban commented 8 years ago

Try making a query where you search for articles for which we have extracted location, i.e.:

QueryArticles(locationUri = er.getConceptUri("London"))

The location on the article is defined only in the cases when we are able to extract the location from the dateline of the article - this is a minority of the articles.

If you wish to find the location where the event mentioned in the article happened you can check if the article is a member of an event (check eventUri value in the article). If it is, load the event information and check the location of the event - for most of the events we are able to extract the location (based on all the articles in the event).