How to Solve NameError: name 'en_core_web_sm' is not defined

Solution: Import the 'en_core_web_sm' module

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

import en_core_web_sm

 

For more information:
Python en_core_web_sm