mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Fix typos in example (see #1105)
This commit is contained in:
parent
34a2eecb17
commit
49026a1346
|
@ -37,11 +37,11 @@ p
|
|||
assert doc[1].text == u'emoji'
|
||||
assert doc[-1].text == u'🍑'
|
||||
assert doc[17:19].text == u'outranking eggplant'
|
||||
assert doc.noun_chunks[0].text == u'Peach emoji'
|
||||
assert list(doc.noun_chunks)[0].text == u'Peach emoji'
|
||||
|
||||
sentences = list(doc.sents)
|
||||
assert len(sentences) == 3
|
||||
assert sentences[0].text == u'Peach is the superior emoji.'
|
||||
assert sentences[1].text == u'Peach is the superior emoji.'
|
||||
|
||||
+infobox
|
||||
| #[strong API:] #[+api("doc") #[code Doc]], #[+api("token") #[code Token]]
|
||||
|
|
Loading…
Reference in New Issue
Block a user