Fix typos in example (see #1105)

This commit is contained in:
ines 2017-06-08 19:15:50 +02:00
parent 34a2eecb17
commit 49026a1346
1 changed files with 2 additions and 2 deletions

View File

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