geotext icon indicating copy to clipboard operation
geotext copied to clipboard

Multiple City Names in capitalized sentences

Open rgoubet opened this issue 4 years ago • 2 comments

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']

rgoubet avatar Jan 19 '21 19:01 rgoubet

is there any solution for this?

adnantechnerds avatar Dec 02 '21 09:12 adnantechnerds

Ran into this also - lower countries not seen in text so thought to .title() capitalizing every word - then i always lost entries

creslinux avatar Apr 16 '23 15:04 creslinux