patterns in ner.match and ner.teach

Hello,

I was wondering if anyone knows what the difference is between using patterns for ner.teach and ner.match?

Thanks

Hi! You might find this answer on the following thread useful: What are the key differences between ner. teach and ner.match ?

So, in terms of the use of patterns, this means that ner.teach uses patterns to bootstrap the annotation process and doesn’t necessarily show you all the matches. It just tries to produce enough positive examples so that the model can kick in. ner.match uses the patterns to show you all matches in your data, one by one, as they come in.

Quick question on ner.match - if it doesn’t use a model or update a model, why does it take a model as input?

spaCy’s Matcher and PhraseMatcher need a tokenizer and a vocab so they can do token-based matching. A model package is the easiest way to pass that in, and it also lets you provide custom models with your own tokenization etc. :slightly_smiling_face: