From 3b208197c3d7288c57bfe9831a3334b4662b416f Mon Sep 17 00:00:00 2001 From: Mike Date: Mon, 25 Apr 2022 16:40:54 +0200 Subject: [PATCH] Fixed example for spacy_syllables (#10705) There was a typo in the example for the spacy_syllables project. --- website/meta/universe.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/meta/universe.json b/website/meta/universe.json index ccd75c0c3..e67c78716 100644 --- a/website/meta/universe.json +++ b/website/meta/universe.json @@ -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",