How many sentences?

Report a typo

Write a program that will print the number of sentences contained in a file from the Gutenberg corpus; take the file identifier as an input. Use len() to find the number of sentences.

Sample Input 1:

austen-persuasion.txt

Sample Output 1:

3747
Write a program in Python 3
from nltk.corpus import gutenberg
___

Create a free account to access the full topic