0
How convert paragraphs into sentences
6 Answers
+ 19
Consider this is the your paragraph : "Hello World. This is a Paragraph. This code is written in Python. Python is an interpreted language.". This is stored in a varable named text. You can use the split() method which will return a list of strings (or you can sentences) after breaking the string by a full stop which is the specified separator.
You can refer the below code snippet :
> text = 'Hello World. This is a Paragraph. This code is written in Python. Python is an interpreted language.'
> list = []
> list = text.split('.')
> print(list)
You will get each individual sentence as a single element of the string.
+ 3
You can use the split method on each period.
+ 3
You can split based off of punctuation followed by double space.
split('. ')
+ 2
Goog luck Simran :)
+ 1
Thanks
But if paragraph is "hello mr. Keval how are you?"
0
Put problem is mr. Prof. Words