Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocationCoder: Getting name of state/ country when not a 'focus' #10

Open
erleholgersen opened this issue Jun 24, 2017 · 0 comments
Open

Comments

@erleholgersen
Copy link
Contributor

erleholgersen commented 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).

@erleholgersen 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant