Python Forum

Full Version: Using locationtagger to extract locations found in a specific country/region
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have found locationtagger as a python based tool which can help me extract locations from a piece of text. My problem is the locations to be extracted are expected to be from a specific location (and different regions / countries have similarly named locations). Is it possible to use locationtagger to identify and extract locations from a specific region / country?

For example: identify locations found around Durban, South Africa in a text?
lord_of_cinder Wrote:My problem is the locations to be extracted are expected to be from a specific location (and different regions / countries have similarly named locations).
Not so.
Re-read the documentation on this package.
It can give you relationships from all countries.
readme: https://github.com/kaushiksoni10/locationtagger