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
We currently get the name of the country a city or state is in by parsing through the countries entry of the CLIFF focus results, matching on the field countryGeoNameId. In some cases, a city might be a focus of an article even though the country is not, in which case this procedure fails to return a name.
Better approaches could be to use the GeoNames API (http://www.geonames.org/) or to parse through the mentions rather than the CLIFF focus results. Note that the latter approach will require a way to determine if a CLIFF entry is a country, as all cities/ states within that country will have the same countryGeoNameId tag.
(We also have this problem when finding the name corresponding to a stateGeoNameId).
The text was updated successfully, but these errors were encountered:
erleholgersen
changed the title
LocationCoder: Extracting state/ country when not a 'focus'
LocationCoder: Getting name of state/ country when not a 'focus'
Jun 24, 2017
We currently get the name of the country a city or state is in by parsing through the countries entry of the CLIFF focus results, matching on the field countryGeoNameId. In some cases, a city might be a focus of an article even though the country is not, in which case this procedure fails to return a name.
Better approaches could be to use the GeoNames API (http://www.geonames.org/) or to parse through the mentions rather than the CLIFF focus results. Note that the latter approach will require a way to determine if a CLIFF entry is a country, as all cities/ states within that country will have the same countryGeoNameId tag.
(We also have this problem when finding the name corresponding to a stateGeoNameId).
The text was updated successfully, but these errors were encountered: