mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix assert in sentencizer documentation. (#4639)
This commit is contained in:
parent
9d5ff177c4
commit
877971860e
|
@ -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 |
|
||||
|
|
Loading…
Reference in New Issue
Block a user