Fix assert in sentencizer documentation. (#4639)

This commit is contained in:
f11r 2019-11-13 15:24:14 +01:00 committed by Ines Montani
parent 9d5ff177c4
commit 877971860e

View File

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