>>> from spacy.en import English ### >>> nlp = English() ### >>> doc = nlp(u'Hello, world. Here are two sentences.') ### >>> >>> token = doc[0] >>> sentence = doc.sents.next() >>> assert token is sentence[0] >>> assert sentence.text == 'Hello, world.'