home << dhlab reference << dhlab.text.geo_data

GeoData#

from dhlab.text.geo_data import GeoData
class GeoData(urn=None, model=None)[source]#

Bases: object

Fetch place data from a text (book, newspaper or …) identified by URN with an appropriate and available spacy model.

The models are retrieved by instantiating Models.

add_geo_locations(feature_class=None, feature_code=None)[source]#

Get location data for the names in object, attribute self.place_names