From 7b0ef326fb49ee7b1279eaf6c088058c9491b848 Mon Sep 17 00:00:00 2001 From: Tom Aarsen Date: Thu, 15 Jun 2023 21:46:03 +0200 Subject: [PATCH] Escape the newlines in the text in the code example Or at least, attempt to --- website/meta/universe.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/meta/universe.json b/website/meta/universe.json index fb40ccbce..14cebb4f6 100644 --- a/website/meta/universe.json +++ b/website/meta/universe.json @@ -4331,8 +4331,8 @@ "nlp = spacy.load(\"en_core_web_sm\")", "nlp.add_pipe(\"span_marker\", config={\"model\": \"tomaarsen/span-marker-roberta-large-ontonotes5\"})", "", - "text = \"\"\"Cleopatra VII, also known as Cleopatra the Great, was the last active ruler of the", - "Ptolemaic Kingdom of Egypt. She was born in 69 BCE and ruled Egypt from 51 BCE until her", + "text = \"\"\"Cleopatra VII, also known as Cleopatra the Great, was the last active ruler of the \\", + "Ptolemaic Kingdom of Egypt. She was born in 69 BCE and ruled Egypt from 51 BCE until her \\", "death in 30 BCE.\"\"\"", "doc = nlp(text)", "print([(entity, entity.label_) for entity in doc.ents])",