mirror of https://github.com/explosion/spaCy.git
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