Fix backslashes in warnings config diff (#5640)

Fix backslashes in warnings config diff in v2.3 migration section.
This commit is contained in:
Adriane Boyd 2020-06-24 10:26:12 +02:00 committed by GitHub
parent 6fe6e761de
commit fd4287c178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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