Last active
June 24, 2020 03:55
-
-
Save ajayjapan/6772abc074e2c6ece444dfb8fe076781 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import spacy | |
nlp = spacy.load("en_core_web_sm") | |
article = "This is the content of the article. It consists of many sentences." | |
doc = nlp(article) | |
[sent.text for sent in doc.sents] | |
# Output: [‘This is the content of the article.’, ‘It consists of many sentences.’] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment