Explore Library
Code QuizIntermediate

Segmenting Text into Sentences

Find the flaw that leaves an empty entry when splitting text into sentences.

Codepython
text = "I love NLP. It is fun."
sentences = text.split(".")
print(sentences)

What is the bug in this sentence segmentation code?