0

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?

AnonymousMe
  • 349
  • 2
  • 12
  • Have you placed in in the directory: '~/.ipython/profile_default/startup/disable-warnings.py' https://stackoverflow.com/a/9031848/7183609 – wes Feb 11 '22 at 15:06

0 Answers0