Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NLP SPACY Matcher #1

Open
Alexo47 opened this issue Feb 9, 2021 · 0 comments
Open

NLP SPACY Matcher #1

Alexo47 opened this issue Feb 9, 2021 · 0 comments

Comments

@Alexo47
Copy link

Alexo47 commented Feb 9, 2021

Hello!

I am trying to analyze a text containing predefined names.
I created a doc = nlp(" my textmentioned above")
I created also a pattern (dictionary) with TEXT as pattern keys.
pattern_periods = [{"TEXT": "Summer 43"},...]
I added these pattern (discretionary) to the matcher.
matcher.add("roman_periods", [pattern_periods])
But when I lauch the matcher:
matches = matcher(doc)
No matches are found.

=> What am I missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant