Skip to main content

Geotext extracts country and city mentions from text

Project description

https://travis-ci.org/elyase/geotext.png?branch=master https://pypip.in/d/geotext/badge.png

Geotext extracts country and city mentions from text

Usage

from geotext import GeoText

places = GeoText("London is a great city")
places.cities
# "London"

GeoText('New York, Texas, and also China').country_mentions
# OrderedDict([(u'US', 2), (u'CN', 1)])

Features

  • No external dependencies

  • Fast

  • Data from http://www.geonames.org licensed under the Creative Commons Attribution 3.0 License.

Similar projects

geography: geography is more advanced and bigger in scope compared to geotext and can do everything geotext does. On the other hand geotext is leaner: has no external dependencies, is faster (re vs nltk) and also depends on libraries and data covered with more permissive licenses.

History

0.1.0 (2014-01-11)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geotext-0.1.0.tar.gz (2.0 MB view details)

Uploaded Source

File details

Details for the file geotext-0.1.0.tar.gz.

File metadata

  • Download URL: geotext-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for geotext-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f0666889e87a1d7b3e1e4da84969d0d319999faa57ffd5bcd3f85f9cee42d948
MD5 b5a59e508472b7d8d80610aeb5539735
BLAKE2b-256 786a151d56c51ce355623cdc865a61b9b7b3fed4472af15a508349cc08912df9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page