Merge pull request #8703 from thomashacker/update/spacy-stanza [ci skip]

Update spacy-stanza universe.json
This commit is contained in:
Ines Montani 2021-07-13 19:03:42 +10:00 committed by GitHub
commit 2a8eeed5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,10 +437,10 @@
"thumb": "https://i.imgur.com/myhLjMJ.png", "thumb": "https://i.imgur.com/myhLjMJ.png",
"code_example": [ "code_example": [
"import stanza", "import stanza",
"from spacy_stanza import StanzaLanguage", "import spacy_stanza",
"", "",
"snlp = stanza.Pipeline(lang=\"en\")", "stanza.download(\"en\")",
"nlp = StanzaLanguage(snlp)", "nlp = spacy_stanza.load_pipeline(\"en\")",
"", "",
"doc = nlp(\"Barack Obama was born in Hawaii. He was elected president in 2008.\")", "doc = nlp(\"Barack Obama was born in Hawaii. He was elected president in 2008.\")",
"for token in doc:", "for token in doc:",