Skip to main content

A customizable geoparsing library for unstructured text

Project description

Irchel Geoparser

CI Tests Coverage PyPI Python License

A Python library for extracting place names from text and linking them to geographic locations.

Features

  • Project-Based Workflows: Store documents and results in a persistent database for long-term research
  • Modular Architecture: Mix and match different recognizers and resolvers, or build your own
  • Trainable Models: Fine-tune recognizers and resolvers on your own annotated data
  • Custom Gazetteers: Integrate any geographic database through simple YAML configuration

Installation

pip install geoparser

Note for macOS users: The library requires SQLite extension support. Please see the macOS setup guide for installation instructions using Homebrew Python.

Quick Start

from geoparser import Geoparser

# Initialize with default settings
gp = Geoparser()

# Parse text
text = "Paris is the capital of France."
docs = gp.parse(text)

# Access results
for toponym in docs[0].toponyms:
    print(f"{toponym.text} -> {toponym.location.data}")

Documentation

Full documentation is available at docs.geoparser.app

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Acknowledgments

The Irchel Geoparser originated as part of my Master's thesis and was further developed with support from the Department of Geography at the University of Zurich and the Public Data Lab of the Digitalization Initiative of the Zurich Higher Education Institutions. I thank Prof. Dr. Ross Purves for the opportunity to continue this work as part of a research project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Third-party licenses are listed in THIRD_PARTY_LICENSES.

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

geoparser-0.3.0.tar.gz (82.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geoparser-0.3.0-py3-none-any.whl (82.4 MB view details)

Uploaded Python 3

File details

Details for the file geoparser-0.3.0.tar.gz.

File metadata

  • Download URL: geoparser-0.3.0.tar.gz
  • Upload date:
  • Size: 82.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for geoparser-0.3.0.tar.gz
Algorithm Hash digest
SHA256 fa4ce86f7b502d398a74b5b0edf34eaa72cb7f476deed8635c577b596253e15c
MD5 3fdf3d104a0de387295dc163d92d5f8f
BLAKE2b-256 0191b874ed25f1a4034f72187d1885bebae73e1f62f85fed664dd6a33a3508a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for geoparser-0.3.0.tar.gz:

Publisher: ci.yml on dguzh/geoparser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geoparser-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: geoparser-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 82.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for geoparser-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 badb33d30b483989c6b7330934b7271e0535d977b8ea17c4e603b8c4802cbc3a
MD5 f802b0ebf0800932b405b0da0a815c93
BLAKE2b-256 390906ea30dc36b684710639cd1ddd9cc6d54e9ccfc71ac1de97b5ec91d6a8a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for geoparser-0.3.0-py3-none-any.whl:

Publisher: ci.yml on dguzh/geoparser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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