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 GitHub
parent e07500369c
commit 3b208197c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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