Articles → SPACY → Sentence Tokenizer In Spacy

Sentence Tokenizer In Spacy






Purpose





Example




import spacy

nlp = spacy.load("en_core_web_sm")

text = """Hello! How are you?
I am fine.
This is another sentence."""

doc = nlp(text)

print("Sentences:")
for sent in doc.sents:
    print(sent.text)



Output


Picture showing the output of sentence tokenizer in spacy



Posted By  -  Karan Gupta
 
Posted On  -  Monday, November 24, 2025

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250