问题标签 [user-warning]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
26 浏览

python - Python - 警告没有被抑制

我试图用这两行来抑制我的 jupyter notebook 中的所有警告:

但是,即使在运行这些行之后,我仍然会得到这样的 UserWarning:

/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))

有人能告诉我为什么这不压制他们吗?