pip install plic-sbd Or clone from source (if available). For manual implementation, you can replicate the logic using re , spacy , or nltk with custom rules. from plic_sbd import segment text = "रामः वनं गच्छति। सीता अपि तत्रैव। ततः रावणः आगच्छति।" sentences = segment(text) for s in sentences: print(s)
Expected output: