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
| Posted By - | Karan Gupta |
| |
| Posted On - | Monday, November 24, 2025 |