Skip to content

smartcrash/nlmatcher

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published