Skip to content
Discussion options

You must be logged in to vote

The Matcher is sensitive to the tokenization, so you need to compare the tokens for "@foo" and "#foo". Using the default English tokenizer, # is split off as a prefix and @ isn't. You can either modify the tokenizer or modify your patterns, see https://spacy.io/usage/linguistic-features#tokenization and https://spacy.io/usage/rule-based-matching.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ines
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / matcher Feature: Token, phrase and dependency matcher
2 participants