Skip to main content

stedsans is a package capable of doing geospatial analyses from text.

Project description

stedsans

This repository is for an exam project for the course Spatial Analytics at Aarhus University during the spring of 2021.

It is made by Jakob Grøhn Damgaard and Malte Højmark-Bertelsen.

For a demonstration, we heavily suggest you to use Google Colab:

Open In Colab

The purpose of it is to build a PyPI-package capable of plotting a map of any location in a Danish sentence. To do so we employ the Natural Language Processing (NLP) technique Named Entity Recognition (NER)

NER is a task consisting of finding words in text that constitute a specific entities and tagging them with specific labels. The most common entities are person names (PER), locations (LOC) and organizations (ORG) (Ruder, 2019). The way the named entities are tagged follows a tagging scheme called BIO-tagging, where the different words are separated as either being the beginning (B) of an entity, inside an entity (I), or other (O), meaning that a word is not part of the defined entities. An illustration of the aforementioned entities can be seen in Table 1.

Table 1:

NER-tag Meaning
B-PER Beginning of person name
I-PER Inside a person name
B-LOC Beginning of location
I-LOC Inside a location
B-ORG Beginning of organization
I-ORG Inside an organization
O Other

Instructions

To use the code locally, start off by cloning the repository and install Anaconda for your OS. Afterwards create a conda environment and install the requirements.

# From the directory of this repository
conda create -n [env_name] python=3.8  # Create conda environment
conda activate [env_name]  # Activate conda environment
pip install -r requirements.txt  # Install required packages

Afterwards install geopandasusing the pre-build binaries from Anaconda:

conda install geopandas

References

Ruder, S. (2019). Neural transfer learning for natural language processing (Doctoral dissertation, NUI Galway).


Contact

For help or further information feel free to reach out to Jakob Grøhn Damgaard on bokajgd@gmail.com or Malte Højmark-Bertelsen on hjb@kmd.dk.

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

stedsans-0.0.12.tar.gz (23.2 MB view details)

Uploaded Source

Built Distribution

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

stedsans-0.0.12-py3-none-any.whl (23.3 MB view details)

Uploaded Python 3

File details

Details for the file stedsans-0.0.12.tar.gz.

File metadata

  • Download URL: stedsans-0.0.12.tar.gz
  • Upload date:
  • Size: 23.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for stedsans-0.0.12.tar.gz
Algorithm Hash digest
SHA256 4dc2f6d2570886ede368a5d76522d2b03f1158e72840f7f92b80ad767421c7f3
MD5 f62d696b8f4b2ea6f817ceb0fe6a6cbf
BLAKE2b-256 6f9cd81a9a4b8a4d59858a66b1eed817583b65294581eb1c72f734707f6d63b9

See more details on using hashes here.

File details

Details for the file stedsans-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: stedsans-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 23.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for stedsans-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ecfdc96c70fdf9f069709d7eab96300007596f2d57b19063c58e6d28559d1450
MD5 2c90aec034be03287bd74be1ceda6e7e
BLAKE2b-256 c9c366b0f20a0d474013f5a802c48ef8c0b68f0b03137caecda55fda3f9f1cea

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