mirror of https://github.com/explosion/spaCy.git
Fix backslashes in warnings config diff (#5640)
Fix backslashes in warnings config diff in v2.3 migration section.
This commit is contained in:
parent
6fe6e761de
commit
fd4287c178
|
@ -170,7 +170,7 @@ import spacy
|
|||
+ import warnings
|
||||
|
||||
- spacy.errors.SPACY_WARNING_IGNORE.append('W007')
|
||||
+ warnings.filterwarnings("ignore", message=r"\[W007\]", category=UserWarning)
|
||||
+ warnings.filterwarnings("ignore", message=r"\\[W007\\]", category=UserWarning)
|
||||
```
|
||||
|
||||
#### Normalization tables
|
||||
|
|
Loading…
Reference in New Issue