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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2534a26351d9744b3b37aad3a305a1beef640e6333e8c48099123cc74e6330c2
|
|
| MD5 |
b094001dd5bab5ddca7a3c668e497f3a
|
|
| BLAKE2b-256 |
d84de3a060208228582e89db8aab825d721467b6af0d05807d0474dce6114099
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
656748e4b39afa95bc055330b4ffc854ba7735027ea66a5ef2097131c6035511
|
|
| MD5 |
5dc6161e764e1d7ed10c2e4c2ca4dfde
|
|
| BLAKE2b-256 |
2e1c888ab812f5315c5a243e421de67f34d9c3f80f8ff51f4d059623c280d39e
|