Skip to main content

A simple library to match locations in text using SpaCy

Project description

NL Matcher

A simple library to match locations in text using SpaCy

Installation

pip install nlmatcher

Usage

import nlmatcher

matcher = nlmatcher.LocationMatcher()

text = "I live in Amsterdam and work in Utrecht"
matches = matcher.match(text)

for match in matches:
    print(match.text)

Output

Amsterdam
Utrecht

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

nl_matcher-0.0.4.tar.gz (84.1 kB view details)

Uploaded Source

Built Distribution

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

nl_matcher-0.0.4-py3-none-any.whl (84.8 kB view details)

Uploaded Python 3

File details

Details for the file nl_matcher-0.0.4.tar.gz.

File metadata

  • Download URL: nl_matcher-0.0.4.tar.gz
  • Upload date:
  • Size: 84.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for nl_matcher-0.0.4.tar.gz
Algorithm Hash digest
SHA256 61f1f782ffbd1d54818e13e402e317d93d79594a0161992d1cf06b922564000f
MD5 f97bdac310539ad5e3a118ae6f5a841b
BLAKE2b-256 17914d845800cfae3b2f298e5b0a482adf54e061076afa887be34b593eeacb3c

See more details on using hashes here.

File details

Details for the file nl_matcher-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: nl_matcher-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 84.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for nl_matcher-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 16444f0ccc83f671c29b7abe2246663c2c902e3c2ec25573c7ce9a31515bf5a7
MD5 510bf4094940c074eb4e2ef353524f21
BLAKE2b-256 f58f559ad228d69c889357d04932ede274e58d03d4aa17153d9c68d5b0424b1b

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