Write a program to print the names of the first three documents in any category of the Brown corpus; take the category name as an input.
Text corpora in NLTK
Genres
Report a typo
Sample Input 1:
science_fictionSample Output 1:
['cm01', 'cm02', 'cm03']Write a program in Python 3
from nltk.corpus import brown
___
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.