Fix unescaped characters in MDX

This commit is contained in:
Marcus Blättermann 2022-11-17 18:52:30 +01:00
parent fdf1a48ebd
commit 56d461effe
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D
3 changed files with 5 additions and 4 deletions

View File

@ -89,7 +89,7 @@ generic subclass containing only the base language data, can be found in
To train a pipeline using the neutral multi-language class, you can set
`lang = "xx"` in your [training config](/usage/training#config). You can also
import the `MultiLanguage` class directly, or call
\import the `MultiLanguage` class directly, or call
[`spacy.blank("xx")`](/api/top-level#spacy.blank) for lazy-loading.
### Chinese language support {id="chinese",version="2.3"}

View File

@ -413,8 +413,9 @@ you can also use an empty dictionary, `{}` as a wildcard representing **any
token**. This is useful if you know the context of what you're trying to match,
but very little about the specific token and its characters. For example, let's
say you're trying to extract people's user names from your data. All you know is
that they are listed as "User name: {username}". The name itself may contain any
character, but no whitespace so you'll know it will be handled as one token.
that they are listed as "User name: \{username\}". The name itself may contain
any character, but no whitespace so you'll know it will be handled as one
token.
```python
[{"ORTH": "User"}, {"ORTH": "name"}, {"ORTH": ":"}, {}]

View File

@ -2910,7 +2910,7 @@
"",
"print(doc._.clauses)",
"# Output:",
"# <SV, AE, died, None, None, None, [in Princeton, in 1955]>",
"# &lt;SV, AE, died, None, None, None, [in Princeton, in 1955]&gt;",
"",
"propositions = doc._.clauses[0].to_propositions(as_text=True)",
"",