spaCy/website/tests/test_load_resources_and_process_text.txt

6 lines
198 B
Plaintext
Raw Normal View History

2015-09-24 17:57:11 +03:00
>>> from spacy.en import English
>>> nlp = English()
>>> doc = nlp(u'Hello, world. Here are two sentences.')
>>> print([s.string for s in doc.sents])
[u'Hello, world. ', u'Here are two sentences.']