Geotext extracts country and city mentions from text using a simple word-matching approach (not ML). Current version 0.4.0, last updated 2018, project effectively in maintenance mode. Does not support Python 3.6+ out of the box.
pip install geotextVerified import paths — ran on the pinned version, not inferred.
Extract city and country mentions from text.
Consider alternatives: geonamescache, countryinfo, or spacy geo components.
Normalize input text to lowercase before passing to GeoText if needed.
Use: from geotext import GeoText
Install enum34: pip install enum34, or switch to Python 3.4+.
No dependency data recorded yet.