I am trying to suppress all warnings in my jupyter notebook with these two lines:
import warnings
warnings.filterwarnings('ignore')
But, even after running these lines, I still get UserWarning like this:
/Users/username/miniforge3/envs/tf_env/lib/python3.8/site-packages/spacy/pipeline/entityruler.py:394: UserWarning: [W036] The component 'entity_ruler' does not have any patterns defined. warnings.warn(Warnings.W036.format(name=self.name))
Could someone tell me why this isnt suppressing them?