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
Could it be possible to have a score for each location found?
Indeed sometimes it could be good to know why some locations are in the results for example :
`
import geograpy
places = geograpy.get_geoPlace_context(text="This sentence mention UK as country and London as city.")
places.countries
['United Kingdom', 'United States', 'Canada']
places.cities
['London']
places = geograpy.get_geoPlace_context(text="Jin Yin-tan Hospital, Wuhan, China.")
places.countries
['China', 'Mexico', 'United States']
places.cities
['China']
`
Something like the following score could be interesting : [('United Kingdom',0.99), ('United States',0.56), ('Canada',0.45)]
A score of confidence could help to avoid those results.
The text was updated successfully, but these errors were encountered:
#52 now addresses this - the default is to order by population. For our own use case we'll use a more sophisticated version and see what the likelyhood of a location is in our context given how often it is already in our corpus.
Could it be possible to have a score for each location found?
Indeed sometimes it could be good to know why some locations are in the results for example :
`
Something like the following score could be interesting :
[('United Kingdom',0.99), ('United States',0.56), ('Canada',0.45)]
A score of confidence could help to avoid those results.
The text was updated successfully, but these errors were encountered: