mirror of https://github.com/explosion/spaCy.git
Fixed example for spacy_syllables (#10705)
There was a typo in the example for the spacy_syllables project.
This commit is contained in:
parent
e07500369c
commit
3b208197c3
|
@ -3212,7 +3212,7 @@
|
|||
"",
|
||||
"assert nlp.pipe_names == [\"tok2vec\", \"tagger\", \"syllables\", \"parser\", \"attribute_ruler\", \"lemmatizer\", \"ner\"]",
|
||||
"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)]"
|
||||
],
|
||||
"thumb": "https://raw.githubusercontent.com/sloev/spacy-syllables/master/logo.png",
|
||||
|
|
Loading…
Reference in New Issue