From 56d461effe210f0893b58d6b2ae3526bd75d3e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Bl=C3=A4ttermann?= Date: Thu, 17 Nov 2022 18:52:30 +0100 Subject: [PATCH] Fix unescaped characters in MDX --- website/docs/usage/models.mdx | 2 +- website/docs/usage/rule-based-matching.mdx | 5 +++-- website/meta/universe.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/website/docs/usage/models.mdx b/website/docs/usage/models.mdx index 12ebc6e31..e5fd9437a 100644 --- a/website/docs/usage/models.mdx +++ b/website/docs/usage/models.mdx @@ -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"} diff --git a/website/docs/usage/rule-based-matching.mdx b/website/docs/usage/rule-based-matching.mdx index 6fac65778..40010e35e 100644 --- a/website/docs/usage/rule-based-matching.mdx +++ b/website/docs/usage/rule-based-matching.mdx @@ -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": ":"}, {}] diff --git a/website/meta/universe.json b/website/meta/universe.json index 7c7ce0c55..37ab8d761 100644 --- a/website/meta/universe.json +++ b/website/meta/universe.json @@ -2910,7 +2910,7 @@ "", "print(doc._.clauses)", "# Output:", - "# ", + "# <SV, AE, died, None, None, None, [in Princeton, in 1955]>", "", "propositions = doc._.clauses[0].to_propositions(as_text=True)", "",