Write a program that will print the first six words of any file from the corpus with movie reviews; take the file identifier as an input.
Text corpora in NLTK
Movie reviews
Report a typo
Sample Input 1:
pos/cv118_28980.txtSample Output 1:
['plot', ':', 'a', 'human', 'space', 'astronaut']Write a program in Python 3
from nltk.corpus import movie_reviews
___
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.