Can I combine token and phrase matcher?

I want to use patterns to help me find tokens and phrases that can be regarded as entities in NER tasks. However, it seems the Matcher only matches tokens and PharseMatcher only matches phrases directly (instead of using regular expression). Can combine the Matcher and PhraseMatcher into one new matcher so that it can matches both tokens according to Matcher and phrases according to PhraseMatcher?

Hello @lanji,

Thank you for your question and welcome to the prodigy support forum!
If you want to combine both Matcher and PhraseMatcher for your prodigy recipe, the PatternMatcher might help you with your task.
However, if you don't want to use prodigy and just combine Matcher and PhraseMatcher, the EntityRuler could be what you're looking for. Questions regarding the EntityRuler can be asked in spaCy discussions, see: Discussions · explosion/spaCy · GitHub