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.
Text corpora in NLTK
How many sentences?
Report a typo
Sample Input 1:
austen-persuasion.txtSample Output 1:
3747Write a program in Python 3
from nltk.corpus import gutenberg
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.