Fixed example for spacy_syllables (#10705)

There was a typo in the example for the spacy_syllables project.
This commit is contained in:
Mike 2022-04-25 16:40:54 +02:00 committed by svlandeg
parent 61cedf168a
commit 5533f889b7

View File

@ -3374,7 +3374,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",