mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-05 06:00:36 +03:00
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
|
+ import warnings
|
||||||
|
|
||||||
- spacy.errors.SPACY_WARNING_IGNORE.append('W007')
|
- 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
|
#### Normalization tables
|
||||||
|
|
Loading…
Reference in New Issue
Block a user