From 8ca6c586259871a50f7f0a7ed1d958704fc4651b Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 13 Jul 2021 19:03:42 +1000 Subject: [PATCH] =?UTF-8?q?Merge=20pull=20request=20#8703=20from=20thomash?= =?UTF-8?q?acker/update/spacy-stanza=C2=A0[ci=20skip]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update spacy-stanza universe.json --- website/meta/universe.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/meta/universe.json b/website/meta/universe.json index 537ba3eec..d524aa57d 100644 --- a/website/meta/universe.json +++ b/website/meta/universe.json @@ -437,10 +437,10 @@ "thumb": "https://i.imgur.com/myhLjMJ.png", "code_example": [ "import stanza", - "from spacy_stanza import StanzaLanguage", + "import spacy_stanza", "", - "snlp = stanza.Pipeline(lang=\"en\")", - "nlp = StanzaLanguage(snlp)", + "stanza.download(\"en\")", + "nlp = spacy_stanza.load_pipeline(\"en\")", "", "doc = nlp(\"Barack Obama was born in Hawaii. He was elected president in 2008.\")", "for token in doc:",