Page 1 of 1

PYTHON QUESTION! A sentence will be any sequence of words that is terminated by a full stop (and including the full stop

Posted: Wed Apr 27, 2022 3:42 pm
by answerhappygod
PYTHON QUESTION!
A sentence will be any sequence of words that is terminated
by a full stop (and including the full stop itself). Test Case
2 should illustrate this.
Write a function sentence_segmentation(document) that
takes an input parameter document (type string)
and returns a list of sentences from the given
document. If no sentences could be segmented (think about the
cases), then it simply returns an empty list.
NB: You are guaranteed that a document will not begin with the
full stop character.
For example: