mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-11 00:50:33 +03:00
Fixed example for spacy_syllables (#10705)
There was a typo in the example for the spacy_syllables project.
This commit is contained in:
parent
61cedf168a
commit
5533f889b7
|
@ -3374,7 +3374,7 @@
|
||||||
"",
|
"",
|
||||||
"assert nlp.pipe_names == [\"tok2vec\", \"tagger\", \"syllables\", \"parser\", \"attribute_ruler\", \"lemmatizer\", \"ner\"]",
|
"assert nlp.pipe_names == [\"tok2vec\", \"tagger\", \"syllables\", \"parser\", \"attribute_ruler\", \"lemmatizer\", \"ner\"]",
|
||||||
"doc = nlp(\"terribly long\")",
|
"doc = nlp(\"terribly long\")",
|
||||||
"data = [(token.text, token..syllables, token..syllables_count) for token in doc]",
|
"data = [(token.text, token._.syllables, token._.syllables_count) for token in doc]",
|
||||||
"assert data == [(\"terribly\", [\"ter\", \"ri\", \"bly\"], 3), (\"long\", [\"long\"], 1)]"
|
"assert data == [(\"terribly\", [\"ter\", \"ri\", \"bly\"], 3), (\"long\", [\"long\"], 1)]"
|
||||||
],
|
],
|
||||||
"thumb": "https://raw.githubusercontent.com/sloev/spacy-syllables/master/logo.png",
|
"thumb": "https://raw.githubusercontent.com/sloev/spacy-syllables/master/logo.png",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user