geotext
geotext copied to clipboard
Multiple City Names in capitalized sentences
Oops:
In [1]: from geotext import GeoText
In [2]: places1 = GeoText('I love London and Brussels.')
In [3]: places1.cities
Out[3]: ['London', 'Brussels']
In [4]: places2 = GeoText('I Love London and Brussels.')
In [5]: places2.cities
Out[5]: ['Brussels']
is there any solution for this?
Ran into this also - lower countries not seen in text so thought to .title() capitalizing every word - then i always lost entries