Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 366 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 366 Bytes

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