mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
Merge pull request #8703 from thomashacker/update/spacy-stanza [ci skip]
Update spacy-stanza universe.json
This commit is contained in:
parent
d8ae5750a6
commit
8ca6c58625
|
@ -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:",
|
||||
|
|
Loading…
Reference in New Issue
Block a user