Tagged word

Report a typo

Write a program to print the first tagged word of any file in the Penn Treebank corpus; take the file identifier as an input.

Sample Input 1:

wsj_0001.mrg

Sample Output 1:

('Pierre', 'NNP')
Write a program in Python 3
from nltk.corpus import treebank
___

Create a free account to access the full topic