From 877971860ea362080b183d8df3cc22649c2d2acd Mon Sep 17 00:00:00 2001 From: f11r Date: Wed, 13 Nov 2019 15:24:14 +0100 Subject: [PATCH] Fix assert in sentencizer documentation. (#4639) --- website/docs/api/sentencizer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api/sentencizer.md b/website/docs/api/sentencizer.md index 237cd6a8a..c9b935f22 100644 --- a/website/docs/api/sentencizer.md +++ b/website/docs/api/sentencizer.md @@ -60,7 +60,7 @@ the component has been added to the pipeline using > sentencizer = nlp.create_pipe("sentencizer") > nlp.add_pipe(sentencizer) > doc = nlp("This is a sentence. This is another sentence.") -> assert list(doc.sents) == 2 +> assert len(list(doc.sents)) == 2 > ``` | Name | Type | Description |