How to Solve NameError: name 'Matcher' is not defined -- spacy

Solution: Import the 'Matcher' module

To Solve the error, add the following line to the top of your code.

from spacy.matcher import Matcher

 

For more information:
Python spacy Matcher