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

Issues with the geoparse prediction for China and U.S #91

Open
akankshanb opened this issue Jan 20, 2021 · 1 comment
Open

Issues with the geoparse prediction for China and U.S #91

akankshanb opened this issue Jan 20, 2021 · 1 comment
Labels

Comments

@akankshanb
Copy link

  1. The geoparse seems to allocate building as place when China is used in a sentence
    geo.geoparse('We traveled to China')
[{'country_conf': 0.68758196,
  'country_predicted': 'CHN',
  'geo': {'admin1': 'Hubei',
          'country_code3': 'CHN',
          'feature_class': 'S',
          'feature_code': 'SCHC',
          'geonameid': '6620465',
          'lat': '30.52047',
          'lon': '114.39637',
          'place_name': 'China University of Geosciences'},
  'spans': [{'end': 20, 'start': 15}],
  'word': 'China'}]
  1. It predicts Canada as a country if U.S in the sentence is used
    geo.geoparse('We traveled to the U.S')
[{'country_conf': 0.28868943,
  'country_predicted': 'CAN',
  'spans': [{'end': 22, 'start': 19}],
  'word': 'U.S'}]

Kindly look in this. Thanks!

@ahalterman
Copy link
Member

Thanks for the report. Mordecai was mostly built to geolocate subnational locations, but several people have requested this feature so I'm planning to add it in the next re-write.

@ahalterman ahalterman added the v3 label Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants