Skip to main content

Spacy Pipeline Component for Hydrologic Entity Extraction

Project description

WATERWHEEL

WATERWHEEL (WATERloo Water and Hydrologic Entity Extractor and Linker) is a spaCy pipeline component that detects rivers, lakes, and other hydrologic entities, and links these entities to Wikidata. Although an acronym, we typically style the name as WaterWheel to avoid the impression that we're screaming all the time.

PyPI: https://pypi.org/project/waterwheel/

Simple Usage

WaterWheel is written as a spaCy module. Sample usage:

import spacy
from waterwheel import WaterWheel

nlp = spacy.load('en_core_web_sm')
nlp.add_pipe(WaterWheel(nlp))

doc = nlp('The ultimate source of the Mackenzie River is Thutade Lake.')

for ent in doc.ents:
    print(f'{ent.text}, type: {ent.label_}, {ent._.wikilink} [{ent.start_char}, {ent.end_char}]')

# Results:
# Mackenzie River, type: RIVER, https://www.wikidata.org/wiki/Q3411 [27, 42]
# Thutade Lake, type: LAKE, https://www.wikidata.org/wiki/Q7333634 [46, 58]

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

waterwheel-0.4.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

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

waterwheel-0.4.0-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

File details

Details for the file waterwheel-0.4.0.tar.gz.

File metadata

  • Download URL: waterwheel-0.4.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for waterwheel-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2534a26351d9744b3b37aad3a305a1beef640e6333e8c48099123cc74e6330c2
MD5 b094001dd5bab5ddca7a3c668e497f3a
BLAKE2b-256 d84de3a060208228582e89db8aab825d721467b6af0d05807d0474dce6114099

See more details on using hashes here.

File details

Details for the file waterwheel-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: waterwheel-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for waterwheel-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 656748e4b39afa95bc055330b4ffc854ba7735027ea66a5ef2097131c6035511
MD5 5dc6161e764e1d7ed10c2e4c2ca4dfde
BLAKE2b-256 2e1c888ab812f5315c5a243e421de67f34d9c3f80f8ff51f4d059623c280d39e

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