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
4f73ced914
commit
a2660bd9c6
|
@ -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