mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-03 20:00:21 +03:00
Escape the newlines in the text in the code example
Or at least, attempt to
This commit is contained in:
parent
9fd9188a64
commit
7b0ef326fb
|
@ -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])",
|
||||
|
|
Loading…
Reference in New Issue
Block a user